.class public Lcom/estrongs/fs/impl/local/j;
.super Ljava/lang/Object;
.source "NativeExecuter.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/estrongs/fs/impl/local/j$b;,
        Lcom/estrongs/fs/impl/local/j$d;,
        Lcom/estrongs/fs/impl/local/j$c;,
        Lcom/estrongs/fs/impl/local/j$g;,
        Lcom/estrongs/fs/impl/local/j$f;,
        Lcom/estrongs/fs/impl/local/j$e;,
        Lcom/estrongs/fs/impl/local/j$h;
    }
.end annotation


# static fields
.field static a:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Lcom/estrongs/fs/impl/local/j$h;",
            ">;"
        }
    .end annotation
.end field

.field static b:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Lcom/estrongs/fs/impl/local/j$h;",
            ">;"
        }
    .end annotation
.end field

.field private static c:Ljava/lang/String;

.field private static d:Ljava/lang/String;

.field private static e:Ljava/lang/String;

.field private static f:Ljava/util/Queue;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/Queue<",
            "Lcom/estrongs/fs/impl/local/j$e;",
            ">;"
        }
    .end annotation
.end field

.field private static g:Ljava/util/Queue;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/Queue<",
            "Lcom/estrongs/fs/impl/local/j$e;",
            ">;"
        }
    .end annotation
.end field

.field private static h:Z

.field private static i:I

.field private static j:Z

.field public static k:Ljava/lang/Object;


# direct methods
.method static constructor <clinit>()V
    .locals 1

    .line 1
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    sput-object v0, Lcom/estrongs/fs/impl/local/j;->a:Ljava/util/List;

    .line 2
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    sput-object v0, Lcom/estrongs/fs/impl/local/j;->b:Ljava/util/List;

    const/4 v0, 0x0

    .line 3
    sput-object v0, Lcom/estrongs/fs/impl/local/j;->c:Ljava/lang/String;

    .line 4
    new-instance v0, Ljava/util/LinkedList;

    invoke-direct {v0}, Ljava/util/LinkedList;-><init>()V

    sput-object v0, Lcom/estrongs/fs/impl/local/j;->f:Ljava/util/Queue;

    .line 5
    new-instance v0, Ljava/util/LinkedList;

    invoke-direct {v0}, Ljava/util/LinkedList;-><init>()V

    sput-object v0, Lcom/estrongs/fs/impl/local/j;->g:Ljava/util/Queue;

    const/4 v0, 0x0

    .line 6
    sput-boolean v0, Lcom/estrongs/fs/impl/local/j;->h:Z

    .line 7
    sput v0, Lcom/estrongs/fs/impl/local/j;->i:I

    .line 8
    sput-boolean v0, Lcom/estrongs/fs/impl/local/j;->j:Z

    .line 9
    new-instance v0, Ljava/lang/Object;

    invoke-direct {v0}, Ljava/lang/Object;-><init>()V

    sput-object v0, Lcom/estrongs/fs/impl/local/j;->k:Ljava/lang/Object;

    .line 10
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    return-void
.end method

.method public static a()I
    .locals 11

    .line 10
    :try_start_0
    sget v0, Lcom/estrongs/fs/impl/local/j;->i:I

    if-eqz v0, :cond_0

    .line 11
    sget v0, Lcom/estrongs/fs/impl/local/j;->i:I

    return v0

    .line 12
    :cond_0
    sget-object v0, Landroid/os/Build;->CPU_ABI:Ljava/lang/String;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    const-string v1, "mips"

    const-string v2, "686"

    const-string v3, "386"

    const-string v4, "x86"

    const-string v5, "arm"

    const/4 v6, 0x3

    const/4 v7, 0x1

    const/4 v8, 0x2

    if-eqz v0, :cond_4

    .line 13
    :try_start_1
    invoke-virtual {v0}, Ljava/lang/String;->toLowerCase()Ljava/lang/String;

    move-result-object v0

    .line 14
    invoke-virtual {v0, v5}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v9

    if-eqz v9, :cond_1

    .line 15
    sput v7, Lcom/estrongs/fs/impl/local/j;->i:I

    return v7

    .line 16
    :cond_1
    invoke-virtual {v0, v4}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v9

    if-nez v9, :cond_3

    invoke-virtual {v0, v3}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v9

    if-nez v9, :cond_3

    invoke-virtual {v0, v2}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v9

    if-eqz v9, :cond_2

    goto :goto_0

    .line 17
    :cond_2
    invoke-virtual {v0, v1}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_4

    .line 18
    sput v6, Lcom/estrongs/fs/impl/local/j;->i:I

    return v6

    .line 19
    :cond_3
    :goto_0
    sput v8, Lcom/estrongs/fs/impl/local/j;->i:I

    return v8

    .line 20
    :cond_4
    new-instance v0, Ljava/io/RandomAccessFile;

    const-string v9, "/proc/cpuinfo"

    const-string v10, "r"

    invoke-direct {v0, v9, v10}, Ljava/io/RandomAccessFile;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    .line 21
    invoke-virtual {v0}, Ljava/io/RandomAccessFile;->readLine()Ljava/lang/String;

    move-result-object v9

    :goto_1
    if-eqz v9, :cond_d

    .line 22
    invoke-virtual {v9}, Ljava/lang/String;->toLowerCase()Ljava/lang/String;

    move-result-object v9

    const-string v10, "processor"

    .line 23
    invoke-virtual {v9, v10}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v10

    if-eqz v10, :cond_8

    .line 24
    invoke-virtual {v9, v5}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v10

    if-eqz v10, :cond_5

    .line 25
    sput v7, Lcom/estrongs/fs/impl/local/j;->i:I

    return v7

    .line 26
    :cond_5
    invoke-virtual {v9, v4}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v10

    if-nez v10, :cond_7

    invoke-virtual {v9, v3}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v10

    if-nez v10, :cond_7

    invoke-virtual {v9, v2}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v10

    if-eqz v10, :cond_6

    goto :goto_2

    .line 27
    :cond_6
    invoke-virtual {v9, v1}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v9

    if-eqz v9, :cond_c

    .line 28
    sput v6, Lcom/estrongs/fs/impl/local/j;->i:I

    return v6

    .line 29
    :cond_7
    :goto_2
    sput v8, Lcom/estrongs/fs/impl/local/j;->i:I

    return v8

    :cond_8
    const-string v10, "flags"

    .line 30
    invoke-virtual {v9, v10}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v10

    if-nez v10, :cond_a

    const-string v10, "features"

    invoke-virtual {v9, v10}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v10

    if-eqz v10, :cond_9

    goto :goto_3

    :cond_9
    const-string v10, "pentium"

    .line 31
    invoke-virtual {v9, v10}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v9

    if-eqz v9, :cond_c

    .line 32
    sput v8, Lcom/estrongs/fs/impl/local/j;->i:I

    return v8

    :cond_a
    :goto_3
    const-string v10, "sse"

    .line 33
    invoke-virtual {v9, v10}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v10

    if-eqz v10, :cond_b

    .line 34
    sput v8, Lcom/estrongs/fs/impl/local/j;->i:I

    return v8

    :cond_b
    const-string v10, "thumb"

    .line 35
    invoke-virtual {v9, v10}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v9

    if-eqz v9, :cond_c

    .line 36
    sput v7, Lcom/estrongs/fs/impl/local/j;->i:I

    return v7

    .line 37
    :cond_c
    invoke-virtual {v0}, Ljava/io/RandomAccessFile;->readLine()Ljava/lang/String;

    move-result-object v9
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0

    goto :goto_1

    .line 38
    :catch_0
    :cond_d
    invoke-static {}, Lcom/estrongs/fs/impl/local/j;->b()I

    move-result v0

    sput v0, Lcom/estrongs/fs/impl/local/j;->i:I

    return v0
.end method

.method public static declared-synchronized a(Ljava/lang/Object;[BII)I
    .locals 2

    const-class v0, Lcom/estrongs/fs/impl/local/j;

    monitor-enter v0

    .line 170
    :try_start_0
    move-object v1, p0

    check-cast v1, Lcom/estrongs/fs/impl/local/j$c;

    invoke-static {v1, p3}, Lcom/estrongs/fs/impl/local/j$c;->b(Lcom/estrongs/fs/impl/local/j$c;I)I

    .line 171
    move-object p3, p0

    check-cast p3, Lcom/estrongs/fs/impl/local/j$c;

    invoke-static {p3, p2}, Lcom/estrongs/fs/impl/local/j$c;->c(Lcom/estrongs/fs/impl/local/j$c;I)I

    .line 172
    move-object p2, p0

    check-cast p2, Lcom/estrongs/fs/impl/local/j$c;

    invoke-static {p2, p1}, Lcom/estrongs/fs/impl/local/j$c;->a(Lcom/estrongs/fs/impl/local/j$c;[B)[B

    .line 173
    invoke-static {p0}, Lcom/estrongs/fs/impl/local/j;->e(Ljava/lang/Object;)V

    .line 174
    check-cast p0, Lcom/estrongs/fs/impl/local/j$c;

    invoke-static {p0}, Lcom/estrongs/fs/impl/local/j$c;->d(Lcom/estrongs/fs/impl/local/j$c;)I

    move-result p0
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    monitor-exit v0

    return p0

    :catchall_0
    move-exception p0

    monitor-exit v0

    throw p0
.end method

.method public static declared-synchronized a(Ljava/lang/Object;JI)J
    .locals 2

    const-class v0, Lcom/estrongs/fs/impl/local/j;

    monitor-enter v0

    .line 175
    :try_start_0
    move-object v1, p0

    check-cast v1, Lcom/estrongs/fs/impl/local/j$c;

    invoke-static {v1, p3}, Lcom/estrongs/fs/impl/local/j$c;->a(Lcom/estrongs/fs/impl/local/j$c;I)I

    .line 176
    move-object p3, p0

    check-cast p3, Lcom/estrongs/fs/impl/local/j$c;

    invoke-static {p3, p1, p2}, Lcom/estrongs/fs/impl/local/j$c;->a(Lcom/estrongs/fs/impl/local/j$c;J)J

    .line 177
    invoke-static {p0}, Lcom/estrongs/fs/impl/local/j;->f(Ljava/lang/Object;)V

    .line 178
    check-cast p0, Lcom/estrongs/fs/impl/local/j$c;

    invoke-static {p0}, Lcom/estrongs/fs/impl/local/j$c;->e(Lcom/estrongs/fs/impl/local/j$c;)J

    move-result-wide p0
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    monitor-exit v0

    return-wide p0

    :catchall_0
    move-exception p0

    monitor-exit v0

    throw p0
.end method

.method public static a(ZZ)Lcom/estrongs/fs/impl/local/j$e;
    .locals 6

    const/4 v0, 0x0

    if-eqz p1, :cond_0

    .line 43
    sget-object v1, Lcom/estrongs/fs/impl/local/j;->g:Ljava/util/Queue;

    monitor-enter v1

    .line 44
    :try_start_0
    sget-object v2, Lcom/estrongs/fs/impl/local/j;->g:Ljava/util/Queue;

    invoke-interface {v2}, Ljava/util/Queue;->remove()Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lcom/estrongs/fs/impl/local/j$e;
    :try_end_0
    .catch Ljava/util/NoSuchElementException; {:try_start_0 .. :try_end_0} :catch_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    goto :goto_0

    :catchall_0
    move-exception p0

    goto :goto_1

    :catch_0
    move-object v2, v0

    .line 45
    :goto_0
    :try_start_1
    monitor-exit v1

    goto :goto_3

    :goto_1
    monitor-exit v1
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    throw p0

    .line 46
    :cond_0
    sget-object v1, Lcom/estrongs/fs/impl/local/j;->f:Ljava/util/Queue;

    monitor-enter v1

    .line 47
    :try_start_2
    sget-object v2, Lcom/estrongs/fs/impl/local/j;->f:Ljava/util/Queue;

    invoke-interface {v2}, Ljava/util/Queue;->remove()Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lcom/estrongs/fs/impl/local/j$e;
    :try_end_2
    .catch Ljava/util/NoSuchElementException; {:try_start_2 .. :try_end_2} :catch_1
    .catchall {:try_start_2 .. :try_end_2} :catchall_1

    goto :goto_2

    :catchall_1
    move-exception p0

    goto/16 :goto_8

    :catch_1
    move-object v2, v0

    .line 48
    :goto_2
    :try_start_3
    monitor-exit v1
    :try_end_3
    .catchall {:try_start_3 .. :try_end_3} :catchall_1

    :goto_3
    const/4 v1, 0x1

    if-nez v2, :cond_6

    if-eqz p0, :cond_6

    if-eqz p1, :cond_1

    :try_start_4
    const-string p0, "su --context u:r:system_app:s0"

    goto :goto_4

    :cond_1
    const-string p0, "su"

    .line 49
    :goto_4
    invoke-static {}, Ljava/lang/Runtime;->getRuntime()Ljava/lang/Runtime;

    move-result-object v3

    invoke-virtual {v3, p0}, Ljava/lang/Runtime;->exec(Ljava/lang/String;)Ljava/lang/Process;

    move-result-object p0

    if-eqz p0, :cond_5

    .line 50
    new-instance v2, Lcom/estrongs/fs/impl/local/j$e;

    invoke-direct {v2}, Lcom/estrongs/fs/impl/local/j$e;-><init>()V

    .line 51
    new-instance v3, Ljava/io/BufferedReader;

    new-instance v4, Ljava/io/InputStreamReader;

    .line 52
    invoke-virtual {p0}, Ljava/lang/Process;->getInputStream()Ljava/io/InputStream;

    move-result-object v5

    invoke-direct {v4, v5}, Ljava/io/InputStreamReader;-><init>(Ljava/io/InputStream;)V

    invoke-direct {v3, v4}, Ljava/io/BufferedReader;-><init>(Ljava/io/Reader;)V

    iput-object v3, v2, Lcom/estrongs/fs/impl/local/j$e;->c:Ljava/io/BufferedReader;

    .line 53
    new-instance v3, Ljava/io/BufferedWriter;

    new-instance v4, Ljava/io/OutputStreamWriter;

    .line 54
    invoke-virtual {p0}, Ljava/lang/Process;->getOutputStream()Ljava/io/OutputStream;

    move-result-object v5

    invoke-direct {v4, v5}, Ljava/io/OutputStreamWriter;-><init>(Ljava/io/OutputStream;)V

    invoke-direct {v3, v4}, Ljava/io/BufferedWriter;-><init>(Ljava/io/Writer;)V

    iput-object v3, v2, Lcom/estrongs/fs/impl/local/j$e;->b:Ljava/io/BufferedWriter;

    const-string v4, "echo successfully\n"

    .line 55
    invoke-virtual {v3, v4}, Ljava/io/BufferedWriter;->write(Ljava/lang/String;)V

    .line 56
    iget-object v3, v2, Lcom/estrongs/fs/impl/local/j$e;->b:Ljava/io/BufferedWriter;

    invoke-virtual {v3}, Ljava/io/BufferedWriter;->flush()V

    .line 57
    iput-boolean v1, v2, Lcom/estrongs/fs/impl/local/j$e;->d:Z

    .line 58
    iput-boolean p1, v2, Lcom/estrongs/fs/impl/local/j$e;->e:Z
    :try_end_4
    .catch Ljava/lang/Exception; {:try_start_4 .. :try_end_4} :catch_3

    const-wide/16 v3, 0x3e8

    .line 59
    :try_start_5
    invoke-static {v3, v4}, Ljava/lang/Thread;->sleep(J)V
    :try_end_5
    .catch Ljava/lang/Exception; {:try_start_5 .. :try_end_5} :catch_2

    .line 60
    :catch_2
    :try_start_6
    iget-object p1, v2, Lcom/estrongs/fs/impl/local/j$e;->c:Ljava/io/BufferedReader;

    invoke-virtual {p1}, Ljava/io/BufferedReader;->readLine()Ljava/lang/String;

    move-result-object p1

    :goto_5
    if-eqz p1, :cond_3

    const-string v1, "successfully"

    .line 61
    invoke-virtual {p1, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-nez v1, :cond_3

    iget-object v1, v2, Lcom/estrongs/fs/impl/local/j$e;->c:Ljava/io/BufferedReader;

    .line 62
    invoke-virtual {v1}, Ljava/io/BufferedReader;->ready()Z

    move-result v1

    if-nez v1, :cond_2

    invoke-virtual {p0}, Ljava/lang/Process;->getInputStream()Ljava/io/InputStream;

    move-result-object v1

    invoke-virtual {v1}, Ljava/io/InputStream;->available()I

    move-result v1

    if-lez v1, :cond_3

    .line 63
    :cond_2
    iget-object p1, v2, Lcom/estrongs/fs/impl/local/j$e;->c:Ljava/io/BufferedReader;

    invoke-virtual {p1}, Ljava/io/BufferedReader;->readLine()Ljava/lang/String;

    move-result-object p1

    goto :goto_5

    :cond_3
    if-eqz p1, :cond_4

    const-string v1, "successfully"

    .line 64
    invoke-virtual {p1, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p1

    if-nez p1, :cond_5

    .line 65
    :cond_4
    invoke-virtual {p0}, Ljava/lang/Process;->destroy()V
    :try_end_6
    .catch Ljava/lang/Exception; {:try_start_6 .. :try_end_6} :catch_3

    goto :goto_6

    :cond_5
    move-object v0, v2

    :goto_6
    move-object v2, v0

    goto :goto_7

    :catch_3
    move-exception p0

    .line 66
    invoke-virtual {p0}, Ljava/lang/Exception;->printStackTrace()V

    return-object v0

    :cond_6
    if-nez v2, :cond_7

    if-nez p0, :cond_7

    .line 67
    :try_start_7
    new-instance p0, Ljava/lang/ProcessBuilder;

    new-array p1, v1, [Ljava/lang/String;

    const-string v1, "/system/bin/sh"

    const/4 v3, 0x0

    aput-object v1, p1, v3

    invoke-direct {p0, p1}, Ljava/lang/ProcessBuilder;-><init>([Ljava/lang/String;)V

    .line 68
    invoke-virtual {p0}, Ljava/lang/ProcessBuilder;->redirectErrorStream()Z

    .line 69
    invoke-virtual {p0}, Ljava/lang/ProcessBuilder;->start()Ljava/lang/Process;

    move-result-object p0

    if-eqz p0, :cond_7

    .line 70
    new-instance p1, Lcom/estrongs/fs/impl/local/j$e;

    invoke-direct {p1}, Lcom/estrongs/fs/impl/local/j$e;-><init>()V

    .line 71
    iput-boolean v3, p1, Lcom/estrongs/fs/impl/local/j$e;->d:Z

    .line 72
    new-instance v1, Ljava/io/BufferedReader;

    new-instance v2, Ljava/io/InputStreamReader;

    .line 73
    invoke-virtual {p0}, Ljava/lang/Process;->getInputStream()Ljava/io/InputStream;

    move-result-object v3

    invoke-direct {v2, v3}, Ljava/io/InputStreamReader;-><init>(Ljava/io/InputStream;)V

    invoke-direct {v1, v2}, Ljava/io/BufferedReader;-><init>(Ljava/io/Reader;)V

    iput-object v1, p1, Lcom/estrongs/fs/impl/local/j$e;->c:Ljava/io/BufferedReader;

    .line 74
    new-instance v1, Ljava/io/BufferedWriter;

    new-instance v2, Ljava/io/OutputStreamWriter;

    .line 75
    invoke-virtual {p0}, Ljava/lang/Process;->getOutputStream()Ljava/io/OutputStream;

    move-result-object v3

    invoke-direct {v2, v3}, Ljava/io/OutputStreamWriter;-><init>(Ljava/io/OutputStream;)V

    invoke-direct {v1, v2}, Ljava/io/BufferedWriter;-><init>(Ljava/io/Writer;)V

    iput-object v1, p1, Lcom/estrongs/fs/impl/local/j$e;->b:Ljava/io/BufferedWriter;

    .line 76
    iput-object p0, p1, Lcom/estrongs/fs/impl/local/j$e;->a:Ljava/lang/Process;
    :try_end_7
    .catch Ljava/lang/Exception; {:try_start_7 .. :try_end_7} :catch_4

    move-object v2, p1

    goto :goto_7

    :catch_4
    return-object v0

    :cond_7
    :goto_7
    return-object v2

    .line 77
    :goto_8
    :try_start_8
    monitor-exit v1
    :try_end_8
    .catchall {:try_start_8 .. :try_end_8} :catchall_1

    goto :goto_a

    :goto_9
    throw p0

    :goto_a
    goto :goto_9
.end method

.method public static a(I)Ljava/lang/String;
    .locals 3

    .line 164
    sget-object v0, Lcom/estrongs/fs/impl/local/j;->b:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    if-nez v0, :cond_0

    .line 165
    invoke-static {}, Lcom/estrongs/fs/impl/local/j;->k()Z

    .line 166
    :cond_0
    sget-object v0, Lcom/estrongs/fs/impl/local/j;->b:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    const/4 v1, 0x0

    if-nez v0, :cond_1

    return-object v1

    :cond_1
    const/4 v0, 0x0

    .line 167
    :goto_0
    sget-object v2, Lcom/estrongs/fs/impl/local/j;->b:Ljava/util/List;

    invoke-interface {v2}, Ljava/util/List;->size()I

    move-result v2

    if-ge v0, v2, :cond_3

    .line 168
    sget-object v2, Lcom/estrongs/fs/impl/local/j;->b:Ljava/util/List;

    invoke-interface {v2, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lcom/estrongs/fs/impl/local/j$h;

    iget v2, v2, Lcom/estrongs/fs/impl/local/j$h;->a:I

    if-ne v2, p0, :cond_2

    .line 169
    sget-object p0, Lcom/estrongs/fs/impl/local/j;->b:Ljava/util/List;

    invoke-interface {p0, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object p0

    check-cast p0, Lcom/estrongs/fs/impl/local/j$h;

    iget-object p0, p0, Lcom/estrongs/fs/impl/local/j$h;->b:Ljava/lang/String;

    return-object p0

    :cond_2
    add-int/lit8 v0, v0, 0x1

    goto :goto_0

    :cond_3
    return-object v1
.end method

.method public static a([Ljava/lang/String;)Ljava/lang/String;
    .locals 4

    const-string v0, ""

    if-nez p0, :cond_0

    return-object v0

    .line 202
    :cond_0
    new-instance v1, Ljava/lang/StringBuffer;

    invoke-direct {v1}, Ljava/lang/StringBuffer;-><init>()V

    .line 203
    invoke-virtual {v1, v0}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    const/4 v0, 0x0

    .line 204
    :goto_0
    array-length v2, p0

    add-int/lit8 v2, v2, -0x1

    if-ge v0, v2, :cond_1

    .line 205
    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    aget-object v3, p0, v0

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v3, "\n"

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    add-int/lit8 v0, v0, 0x1

    goto :goto_0

    .line 206
    :cond_1
    array-length v2, p0

    if-lez v2, :cond_2

    .line 207
    aget-object p0, p0, v0

    invoke-virtual {v1, p0}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    .line 208
    :cond_2
    invoke-virtual {v1}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;

    move-result-object p0

    return-object p0
.end method

.method public static a(Lcom/estrongs/fs/impl/local/j$e;)V
    .locals 1

    if-eqz p0, :cond_1

    .line 39
    iget-object v0, p0, Lcom/estrongs/fs/impl/local/j$e;->a:Ljava/lang/Process;

    if-nez v0, :cond_0

    goto :goto_0

    .line 40
    :cond_0
    new-instance v0, Lcom/estrongs/fs/impl/local/j$b;

    invoke-direct {v0}, Lcom/estrongs/fs/impl/local/j$b;-><init>()V

    .line 41
    iput-object p0, v0, Lcom/estrongs/fs/impl/local/j$b;->a:Ljava/lang/Object;

    .line 42
    invoke-virtual {v0}, Lcom/estrongs/fs/impl/local/j$b;->a()Ljava/lang/Object;

    :cond_1
    :goto_0
    return-void
.end method

.method public static a(Ljava/io/OutputStream;I)V
    .locals 3
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    const/4 v0, 0x4

    new-array v0, v0, [B

    ushr-int/lit8 v1, p1, 0x18

    int-to-byte v1, v1

    const/4 v2, 0x0

    aput-byte v1, v0, v2

    ushr-int/lit8 v1, p1, 0x10

    int-to-byte v1, v1

    const/4 v2, 0x1

    aput-byte v1, v0, v2

    ushr-int/lit8 v1, p1, 0x8

    int-to-byte v1, v1

    const/4 v2, 0x2

    aput-byte v1, v0, v2

    int-to-byte p1, p1

    const/4 v1, 0x3

    aput-byte p1, v0, v1

    .line 4
    invoke-virtual {p0, v0}, Ljava/io/OutputStream;->write([B)V

    return-void
.end method

.method public static a(Ljava/io/OutputStream;J)V
    .locals 8
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    const/16 v0, 0x8

    new-array v1, v0, [B

    const/16 v2, 0x38

    ushr-long v2, p1, v2

    const-wide/16 v4, 0xff

    and-long/2addr v2, v4

    long-to-int v3, v2

    int-to-byte v2, v3

    const/4 v3, 0x0

    aput-byte v2, v1, v3

    const/16 v2, 0x30

    ushr-long v6, p1, v2

    and-long/2addr v6, v4

    long-to-int v2, v6

    int-to-byte v2, v2

    const/4 v6, 0x1

    aput-byte v2, v1, v6

    const/16 v2, 0x28

    ushr-long v6, p1, v2

    and-long/2addr v6, v4

    long-to-int v2, v6

    int-to-byte v2, v2

    const/4 v6, 0x2

    aput-byte v2, v1, v6

    const/16 v2, 0x20

    ushr-long v6, p1, v2

    and-long/2addr v6, v4

    long-to-int v2, v6

    int-to-byte v2, v2

    const/4 v6, 0x3

    aput-byte v2, v1, v6

    const/16 v2, 0x18

    ushr-long v6, p1, v2

    and-long/2addr v6, v4

    long-to-int v2, v6

    int-to-byte v2, v2

    const/4 v6, 0x4

    aput-byte v2, v1, v6

    const/16 v2, 0x10

    ushr-long v6, p1, v2

    and-long/2addr v6, v4

    long-to-int v2, v6

    int-to-byte v2, v2

    const/4 v6, 0x5

    aput-byte v2, v1, v6

    ushr-long v6, p1, v0

    and-long/2addr v6, v4

    long-to-int v0, v6

    int-to-byte v0, v0

    const/4 v2, 0x6

    aput-byte v0, v1, v2

    ushr-long/2addr p1, v3

    and-long/2addr p1, v4

    long-to-int p2, p1

    int-to-byte p1, p2

    const/4 p2, 0x7

    aput-byte p1, v1, p2

    .line 5
    invoke-virtual {p0, v1}, Ljava/io/OutputStream;->write([B)V

    return-void
.end method

.method public static a(Ljava/io/OutputStream;Ljava/lang/String;)V
    .locals 1
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .line 1
    invoke-virtual {p1}, Ljava/lang/String;->getBytes()[B

    move-result-object p1

    .line 2
    array-length v0, p1

    invoke-static {p0, v0}, Lcom/estrongs/fs/impl/local/j;->a(Ljava/io/OutputStream;I)V

    .line 3
    invoke-virtual {p0, p1}, Ljava/io/OutputStream;->write([B)V

    return-void
.end method

.method public static declared-synchronized a(Ljava/lang/Object;)V
    .locals 1

    const-class v0, Lcom/estrongs/fs/impl/local/j;

    monitor-enter v0

    .line 179
    :try_start_0
    invoke-static {p0}, Lcom/estrongs/fs/impl/local/j;->b(Ljava/lang/Object;)V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 180
    monitor-exit v0

    return-void

    :catchall_0
    move-exception p0

    monitor-exit v0

    throw p0
.end method

.method public static a(Ljava/lang/String;Lcom/estrongs/fs/g;Z)V
    .locals 4

    .line 262
    :try_start_0
    invoke-interface {p1}, Lcom/estrongs/fs/g;->lastModified()J

    move-result-wide v0

    const-wide/16 v2, 0x3e8

    div-long/2addr v0, v2

    invoke-static {p0, v0, v1}, Lcom/estrongs/fs/impl/local/j;->a(Ljava/lang/String;J)Z

    .line 263
    invoke-interface {p1}, Lcom/estrongs/fs/g;->d()Ljava/lang/String;

    move-result-object p1

    invoke-static {p1}, Lcom/estrongs/fs/impl/local/j;->g(Ljava/lang/String;)Lcom/estrongs/fs/impl/local/j$d;

    move-result-object p1

    const/4 v0, -0x1

    .line 264
    iput v0, p1, Lcom/estrongs/fs/impl/local/j$d;->d:I

    if-eqz p2, :cond_0

    .line 265
    iget p2, p1, Lcom/estrongs/fs/impl/local/j$d;->b:I

    or-int/lit16 p2, p2, 0x1ff

    iput p2, p1, Lcom/estrongs/fs/impl/local/j$d;->b:I

    .line 266
    :cond_0
    invoke-static {p0, p1}, Lcom/estrongs/fs/impl/local/j;->a(Ljava/lang/String;Lcom/estrongs/fs/impl/local/j$d;)Z
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :catch_0
    return-void
.end method

.method public static a(Ljava/lang/String;Ljava/lang/Object;)V
    .locals 13

    if-nez p0, :cond_0

    return-void

    .line 102
    :cond_0
    invoke-static {}, Lcom/estrongs/fs/impl/local/j;->p()Landroid/net/LocalSocket;

    move-result-object v0

    if-nez v0, :cond_1

    return-void

    :cond_1
    const/4 v1, 0x0

    .line 103
    :try_start_0
    invoke-virtual {v0}, Landroid/net/LocalSocket;->getInputStream()Ljava/io/InputStream;

    move-result-object v2
    :try_end_0
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_3
    .catchall {:try_start_0 .. :try_end_0} :catchall_2

    .line 104
    :try_start_1
    invoke-virtual {v0}, Landroid/net/LocalSocket;->getOutputStream()Ljava/io/OutputStream;

    move-result-object v3
    :try_end_1
    .catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_0
    .catchall {:try_start_1 .. :try_end_1} :catchall_1

    const/4 v4, 0x1

    .line 105
    :try_start_2
    invoke-static {v3, v4}, Lcom/estrongs/fs/impl/local/j;->a(Ljava/io/OutputStream;I)V

    .line 106
    invoke-static {v3, p0}, Lcom/estrongs/fs/impl/local/j;->a(Ljava/io/OutputStream;Ljava/lang/String;)V

    .line 107
    :goto_0
    invoke-static {v2}, Lcom/estrongs/fs/impl/local/j;->d(Ljava/io/InputStream;)Ljava/lang/String;

    move-result-object v6

    .line 108
    invoke-static {v2}, Lcom/estrongs/fs/impl/local/j;->b(Ljava/io/InputStream;)I

    move-result p0

    .line 109
    invoke-static {v2}, Lcom/estrongs/fs/impl/local/j;->b(Ljava/io/InputStream;)I

    move-result v4

    int-to-long v7, p0

    const/16 p0, 0x20

    shl-long/2addr v7, p0

    int-to-long v4, v4

    add-long/2addr v7, v4

    .line 110
    invoke-static {v2}, Lcom/estrongs/fs/impl/local/j;->b(Ljava/io/InputStream;)I

    move-result v9

    .line 111
    invoke-static {v2}, Lcom/estrongs/fs/impl/local/j;->b(Ljava/io/InputStream;)I

    move-result v10

    .line 112
    invoke-static {v2}, Lcom/estrongs/fs/impl/local/j;->d(Ljava/io/InputStream;)Ljava/lang/String;

    move-result-object v11

    .line 113
    invoke-static {v1}, Lcom/estrongs/fs/impl/local/l;->a(Landroid/content/Context;)Lcom/estrongs/fs/impl/local/l;

    move-result-object v5

    move-object v12, p1

    invoke-virtual/range {v5 .. v12}, Lcom/estrongs/fs/impl/local/l;->a(Ljava/lang/String;JIILjava/lang/String;Ljava/lang/Object;)Z
    :try_end_2
    .catch Ljava/io/IOException; {:try_start_2 .. :try_end_2} :catch_1
    .catchall {:try_start_2 .. :try_end_2} :catchall_0

    goto :goto_0

    :catchall_0
    move-exception p0

    goto :goto_1

    :catchall_1
    move-exception p0

    move-object v3, v1

    :goto_1
    move-object v1, v2

    goto :goto_2

    :catch_0
    move-object v3, v1

    :catch_1
    move-object v1, v2

    goto :goto_3

    :catchall_2
    move-exception p0

    move-object v3, v1

    :goto_2
    if-eqz v1, :cond_2

    .line 114
    :try_start_3
    invoke-virtual {v1}, Ljava/io/InputStream;->close()V

    :cond_2
    if-eqz v3, :cond_3

    .line 115
    invoke-virtual {v3}, Ljava/io/OutputStream;->close()V

    .line 116
    :cond_3
    invoke-virtual {v0}, Landroid/net/LocalSocket;->close()V
    :try_end_3
    .catch Ljava/io/IOException; {:try_start_3 .. :try_end_3} :catch_2

    .line 117
    throw p0

    :catch_2
    return-void

    :catch_3
    move-object v3, v1

    :goto_3
    if-eqz v1, :cond_4

    .line 118
    :try_start_4
    invoke-virtual {v1}, Ljava/io/InputStream;->close()V

    :cond_4
    if-eqz v3, :cond_5

    .line 119
    invoke-virtual {v3}, Ljava/io/OutputStream;->close()V

    .line 120
    :cond_5
    invoke-virtual {v0}, Landroid/net/LocalSocket;->close()V
    :try_end_4
    .catch Ljava/io/IOException; {:try_start_4 .. :try_end_4} :catch_4

    :catch_4
    return-void
.end method

.method public static a(Landroid/content/Context;)Z
    .locals 5

    .line 91
    new-instance v0, Ljava/io/File;

    sget-object v1, Lcom/estrongs/fs/impl/local/j;->c:Ljava/lang/String;

    invoke-direct {v0, v1}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 92
    invoke-virtual {v0}, Ljava/io/File;->delete()Z

    const/4 v1, 0x0

    .line 93
    :try_start_0
    invoke-static {}, Lcom/estrongs/fs/impl/local/j;->c()I

    move-result v2

    .line 94
    invoke-virtual {p0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object p0

    invoke-virtual {p0, v2}, Landroid/content/res/Resources;->openRawResource(I)Ljava/io/InputStream;

    move-result-object p0

    .line 95
    sget-object v3, Lcom/estrongs/fs/impl/local/j;->c:Ljava/lang/String;

    const/4 v4, -0x1

    invoke-static {p0, v3, v4}, Lcom/estrongs/android/util/o0;->a(Ljava/io/InputStream;Ljava/lang/String;I)Z

    .line 96
    invoke-virtual {p0}, Ljava/io/InputStream;->close()V

    const/4 p0, 0x1

    .line 97
    invoke-virtual {v0, p0, v1}, Ljava/io/File;->setExecutable(ZZ)Z

    .line 98
    invoke-virtual {v0, p0, v1}, Ljava/io/File;->setReadable(ZZ)Z

    .line 99
    invoke-static {}, Lcom/estrongs/android/pop/l;->L1()Lcom/estrongs/android/pop/l;

    move-result-object v0

    .line 100
    invoke-static {}, Lcom/estrongs/android/pop/FexApplication;->n()Lcom/estrongs/android/pop/FexApplication;

    move-result-object v3

    invoke-virtual {v3}, Lcom/estrongs/android/pop/FexApplication;->getResources()Landroid/content/res/Resources;

    move-result-object v3

    invoke-virtual {v3, v2}, Landroid/content/res/Resources;->getResourceName(I)Ljava/lang/String;

    move-result-object v2

    .line 101
    invoke-virtual {v0, v2}, Lcom/estrongs/android/pop/l;->Y(Ljava/lang/String;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    return p0

    :catch_0
    return v1
.end method

.method public static a(Landroid/content/Context;Z)Z
    .locals 3

    if-nez p0, :cond_0

    if-nez p1, :cond_0

    .line 78
    sget-boolean p0, Lcom/estrongs/fs/impl/local/j;->h:Z

    return p0

    .line 79
    :cond_0
    sget-object v0, Lcom/estrongs/fs/impl/local/j;->c:Ljava/lang/String;

    const/4 v1, 0x0

    if-nez v0, :cond_1

    return v1

    .line 80
    :cond_1
    invoke-static {}, Lcom/estrongs/android/pop/l;->L1()Lcom/estrongs/android/pop/l;

    move-result-object v0

    invoke-virtual {v0}, Lcom/estrongs/android/pop/l;->j()Z

    move-result v0

    const/4 v2, 0x1

    if-eqz v0, :cond_2

    .line 81
    invoke-static {}, Lcom/estrongs/android/pop/l;->L1()Lcom/estrongs/android/pop/l;

    move-result-object v0

    invoke-virtual {v0}, Lcom/estrongs/android/pop/l;->u1()Z

    move-result v0

    if-eqz v0, :cond_2

    const/4 v0, 0x1

    goto :goto_0

    :cond_2
    const/4 v0, 0x0

    :goto_0
    if-ne p1, v2, :cond_3

    if-nez v0, :cond_3

    .line 82
    sput-boolean v0, Lcom/estrongs/fs/impl/local/j;->h:Z

    return v1

    :cond_3
    if-nez p1, :cond_5

    if-nez v0, :cond_4

    .line 83
    sput-boolean v0, Lcom/estrongs/fs/impl/local/j;->h:Z

    return v1

    .line 84
    :cond_4
    sget-boolean p0, Lcom/estrongs/fs/impl/local/j;->h:Z

    return p0

    .line 85
    :cond_5
    invoke-static {}, Lcom/estrongs/fs/impl/local/j;->m()Z

    move-result v0

    if-eqz v0, :cond_6

    .line 86
    :try_start_0
    invoke-static {p0}, Lcom/estrongs/fs/impl/local/j;->a(Landroid/content/Context;)Z

    move-result p0
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_1

    :catch_0
    const/4 p0, 0x0

    :goto_1
    if-nez p0, :cond_6

    return v1

    :cond_6
    new-array p0, v2, [Z

    .line 87
    invoke-static {p1}, Lcom/estrongs/fs/impl/local/j;->e(Z)Z

    move-result v0

    if-nez v0, :cond_7

    .line 88
    sget-boolean v2, Lcom/estrongs/fs/impl/local/j;->h:Z

    if-nez v2, :cond_7

    .line 89
    invoke-static {p1}, Lcom/estrongs/fs/impl/local/j;->e(Z)Z

    move-result p1

    aput-boolean p1, p0, v1

    goto :goto_2

    :cond_7
    aput-boolean v0, p0, v1

    .line 90
    :goto_2
    aget-boolean p0, p0, v1

    return p0
.end method

.method public static a(Ljava/lang/String;J)Z
    .locals 5

    .line 181
    invoke-static {}, Lcom/estrongs/fs/impl/local/j;->p()Landroid/net/LocalSocket;

    move-result-object v0

    const/4 v1, 0x0

    const/4 v2, 0x0

    .line 182
    :try_start_0
    invoke-virtual {v0}, Landroid/net/LocalSocket;->getOutputStream()Ljava/io/OutputStream;

    move-result-object v3
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_3
    .catchall {:try_start_0 .. :try_end_0} :catchall_1

    .line 183
    :try_start_1
    invoke-virtual {v0}, Landroid/net/LocalSocket;->getInputStream()Ljava/io/InputStream;

    move-result-object v2

    const/16 v4, 0xcf

    .line 184
    invoke-static {v3, v4}, Lcom/estrongs/fs/impl/local/j;->a(Ljava/io/OutputStream;I)V

    .line 185
    invoke-static {v3, p0}, Lcom/estrongs/fs/impl/local/j;->a(Ljava/io/OutputStream;Ljava/lang/String;)V

    .line 186
    invoke-static {v3, p1, p2}, Lcom/estrongs/fs/impl/local/j;->a(Ljava/io/OutputStream;J)V

    .line 187
    invoke-static {v2}, Lcom/estrongs/fs/impl/local/j;->b(Ljava/io/InputStream;)I

    move-result p0
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_2
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    if-eqz p0, :cond_2

    if-eqz v2, :cond_0

    .line 188
    :try_start_2
    invoke-virtual {v2}, Ljava/io/InputStream;->close()V

    :cond_0
    if-eqz v3, :cond_1

    .line 189
    invoke-virtual {v3}, Ljava/io/OutputStream;->close()V

    .line 190
    :cond_1
    invoke-virtual {v0}, Landroid/net/LocalSocket;->close()V
    :try_end_2
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_0

    :catch_0
    return v1

    :cond_2
    const/4 p0, 0x1

    if-eqz v2, :cond_3

    .line 191
    :try_start_3
    invoke-virtual {v2}, Ljava/io/InputStream;->close()V

    :cond_3
    if-eqz v3, :cond_4

    .line 192
    invoke-virtual {v3}, Ljava/io/OutputStream;->close()V

    .line 193
    :cond_4
    invoke-virtual {v0}, Landroid/net/LocalSocket;->close()V
    :try_end_3
    .catch Ljava/lang/Exception; {:try_start_3 .. :try_end_3} :catch_1

    :catch_1
    return p0

    :catchall_0
    move-exception p0

    goto :goto_1

    :catch_2
    move-exception p0

    goto :goto_0

    :catchall_1
    move-exception p0

    move-object v3, v2

    goto :goto_1

    :catch_3
    move-exception p0

    move-object v3, v2

    .line 194
    :goto_0
    :try_start_4
    invoke-virtual {p0}, Ljava/lang/Exception;->printStackTrace()V
    :try_end_4
    .catchall {:try_start_4 .. :try_end_4} :catchall_0

    if-eqz v2, :cond_5

    .line 195
    :try_start_5
    invoke-virtual {v2}, Ljava/io/InputStream;->close()V

    :cond_5
    if-eqz v3, :cond_6

    .line 196
    invoke-virtual {v3}, Ljava/io/OutputStream;->close()V

    .line 197
    :cond_6
    invoke-virtual {v0}, Landroid/net/LocalSocket;->close()V
    :try_end_5
    .catch Ljava/lang/Exception; {:try_start_5 .. :try_end_5} :catch_4

    :catch_4
    return v1

    :goto_1
    if-eqz v2, :cond_7

    .line 198
    :try_start_6
    invoke-virtual {v2}, Ljava/io/InputStream;->close()V

    :cond_7
    if-eqz v3, :cond_8

    .line 199
    invoke-virtual {v3}, Ljava/io/OutputStream;->close()V

    .line 200
    :cond_8
    invoke-virtual {v0}, Landroid/net/LocalSocket;->close()V
    :try_end_6
    .catch Ljava/lang/Exception; {:try_start_6 .. :try_end_6} :catch_5

    .line 201
    :catch_5
    throw p0
.end method

.method public static a(Ljava/lang/String;Lcom/estrongs/fs/impl/local/j$d;)Z
    .locals 1

    if-nez p0, :cond_0

    const/4 p0, 0x0

    return p0

    :cond_0
    const-string v0, "rw"

    .line 159
    invoke-static {p0, v0}, Lcom/estrongs/android/util/h0;->j(Ljava/lang/String;Ljava/lang/String;)[Ljava/lang/String;

    move-result-object v0

    .line 160
    invoke-static {p1, p0}, Lcom/estrongs/fs/impl/local/j$d;->a(Lcom/estrongs/fs/impl/local/j$d;Ljava/lang/String;)Ljava/lang/String;

    .line 161
    invoke-static {p1}, Lcom/estrongs/fs/impl/local/j;->g(Ljava/lang/Object;)V

    if-eqz v0, :cond_1

    .line 162
    invoke-static {v0}, Lcom/estrongs/android/util/h0;->a([Ljava/lang/String;)Z

    .line 163
    :cond_1
    invoke-static {p1}, Lcom/estrongs/fs/impl/local/j$d;->b(Lcom/estrongs/fs/impl/local/j$d;)Z

    move-result p0

    return p0
.end method

.method public static a(Ljava/lang/String;Ljava/lang/String;)Z
    .locals 5
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/estrongs/fs/impl/local/NativeException;
        }
    .end annotation

    const/4 v0, 0x0

    if-eqz p0, :cond_9

    if-nez p1, :cond_0

    goto :goto_2

    .line 121
    :cond_0
    invoke-static {}, Lcom/estrongs/fs/impl/local/j;->p()Landroid/net/LocalSocket;

    move-result-object v1

    if-nez v1, :cond_1

    return v0

    :cond_1
    const/4 v2, 0x0

    .line 122
    :try_start_0
    invoke-virtual {v1}, Landroid/net/LocalSocket;->getInputStream()Ljava/io/InputStream;

    move-result-object v3
    :try_end_0
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_3
    .catchall {:try_start_0 .. :try_end_0} :catchall_1

    .line 123
    :try_start_1
    invoke-virtual {v1}, Landroid/net/LocalSocket;->getOutputStream()Ljava/io/OutputStream;

    move-result-object v2

    const/4 v4, 0x7

    .line 124
    invoke-static {v2, v4}, Lcom/estrongs/fs/impl/local/j;->a(Ljava/io/OutputStream;I)V

    .line 125
    invoke-static {v2, p0}, Lcom/estrongs/fs/impl/local/j;->a(Ljava/io/OutputStream;Ljava/lang/String;)V

    .line 126
    invoke-static {v2, p1}, Lcom/estrongs/fs/impl/local/j;->a(Ljava/io/OutputStream;Ljava/lang/String;)V

    .line 127
    invoke-static {v3}, Lcom/estrongs/fs/impl/local/j;->b(Ljava/io/InputStream;)I

    move-result p0
    :try_end_1
    .catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    if-nez p0, :cond_4

    const/4 p0, 0x1

    if-eqz v3, :cond_2

    .line 128
    :try_start_2
    invoke-virtual {v3}, Ljava/io/InputStream;->close()V

    :cond_2
    if-eqz v2, :cond_3

    .line 129
    invoke-virtual {v2}, Ljava/io/OutputStream;->close()V

    .line 130
    :cond_3
    invoke-virtual {v1}, Landroid/net/LocalSocket;->close()V
    :try_end_2
    .catch Ljava/io/IOException; {:try_start_2 .. :try_end_2} :catch_0

    return p0

    :catch_0
    return v0

    .line 131
    :cond_4
    :try_start_3
    new-instance p1, Lcom/estrongs/fs/impl/local/NativeException;

    invoke-static {p0}, Lcom/estrongs/fs/impl/local/h;->a(I)Ljava/lang/String;

    move-result-object p0

    invoke-direct {p1, p0}, Lcom/estrongs/fs/impl/local/NativeException;-><init>(Ljava/lang/String;)V

    throw p1
    :try_end_3
    .catch Ljava/io/IOException; {:try_start_3 .. :try_end_3} :catch_1
    .catchall {:try_start_3 .. :try_end_3} :catchall_0

    :catchall_0
    move-exception p0

    move-object p1, v2

    move-object v2, v3

    goto :goto_0

    :catch_1
    move-object p0, v2

    move-object v2, v3

    goto :goto_1

    :catchall_1
    move-exception p0

    move-object p1, v2

    :goto_0
    if-eqz v2, :cond_5

    .line 132
    :try_start_4
    invoke-virtual {v2}, Ljava/io/InputStream;->close()V

    :cond_5
    if-eqz p1, :cond_6

    .line 133
    invoke-virtual {p1}, Ljava/io/OutputStream;->close()V

    .line 134
    :cond_6
    invoke-virtual {v1}, Landroid/net/LocalSocket;->close()V
    :try_end_4
    .catch Ljava/io/IOException; {:try_start_4 .. :try_end_4} :catch_2

    .line 135
    throw p0

    :catch_2
    return v0

    :catch_3
    move-object p0, v2

    :goto_1
    if-eqz v2, :cond_7

    .line 136
    :try_start_5
    invoke-virtual {v2}, Ljava/io/InputStream;->close()V

    :cond_7
    if-eqz p0, :cond_8

    .line 137
    invoke-virtual {p0}, Ljava/io/OutputStream;->close()V

    .line 138
    :cond_8
    invoke-virtual {v1}, Landroid/net/LocalSocket;->close()V
    :try_end_5
    .catch Ljava/io/IOException; {:try_start_5 .. :try_end_5} :catch_4

    :catch_4
    :cond_9
    :goto_2
    return v0
.end method

.method private static a(Ljava/lang/String;Ljava/lang/String;Z)Z
    .locals 5

    .line 240
    invoke-static {}, Lcom/estrongs/fs/impl/local/j;->p()Landroid/net/LocalSocket;

    move-result-object v0

    const/4 v1, 0x0

    if-nez v0, :cond_0

    return v1

    :cond_0
    const/4 v2, 0x0

    .line 241
    :try_start_0
    invoke-virtual {v0}, Landroid/net/LocalSocket;->getInputStream()Ljava/io/InputStream;

    move-result-object v3
    :try_end_0
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_4
    .catchall {:try_start_0 .. :try_end_0} :catchall_1

    .line 242
    :try_start_1
    invoke-virtual {v0}, Landroid/net/LocalSocket;->getOutputStream()Ljava/io/OutputStream;

    move-result-object v2

    const/4 v4, 0x6

    .line 243
    invoke-static {v2, v4}, Lcom/estrongs/fs/impl/local/j;->a(Ljava/io/OutputStream;I)V

    .line 244
    invoke-static {v2, p0}, Lcom/estrongs/fs/impl/local/j;->a(Ljava/io/OutputStream;Ljava/lang/String;)V

    .line 245
    invoke-static {v2, p1}, Lcom/estrongs/fs/impl/local/j;->a(Ljava/io/OutputStream;Ljava/lang/String;)V

    const/4 p0, 0x1

    if-eqz p2, :cond_1

    const/4 p1, 0x1

    goto :goto_0

    :cond_1
    const/4 p1, 0x0

    .line 246
    :goto_0
    invoke-static {v2, p1}, Lcom/estrongs/fs/impl/local/j;->a(Ljava/io/OutputStream;I)V

    .line 247
    invoke-static {v3}, Lcom/estrongs/fs/impl/local/j;->b(Ljava/io/InputStream;)I

    move-result p1
    :try_end_1
    .catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_2
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    if-nez p1, :cond_4

    if-eqz v3, :cond_2

    .line 248
    :try_start_2
    invoke-virtual {v3}, Ljava/io/InputStream;->close()V

    :cond_2
    if-eqz v2, :cond_3

    .line 249
    invoke-virtual {v2}, Ljava/io/OutputStream;->close()V

    .line 250
    :cond_3
    invoke-virtual {v0}, Landroid/net/LocalSocket;->close()V
    :try_end_2
    .catch Ljava/io/IOException; {:try_start_2 .. :try_end_2} :catch_0

    return p0

    :catch_0
    return v1

    :cond_4
    :try_start_3
    const-string p0, "EEE"

    .line 251
    new-instance p2, Ljava/lang/StringBuilder;

    invoke-direct {p2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v4, "estool mount return:"

    invoke-virtual {p2, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p2, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {p2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    invoke-static {p0, p1}, Lcom/estrongs/android/util/n;->b(Ljava/lang/String;Ljava/lang/String;)V
    :try_end_3
    .catch Ljava/io/IOException; {:try_start_3 .. :try_end_3} :catch_2
    .catchall {:try_start_3 .. :try_end_3} :catchall_0

    if-eqz v3, :cond_5

    .line 252
    :try_start_4
    invoke-virtual {v3}, Ljava/io/InputStream;->close()V

    :cond_5
    if-eqz v2, :cond_6

    .line 253
    invoke-virtual {v2}, Ljava/io/OutputStream;->close()V

    .line 254
    :cond_6
    invoke-virtual {v0}, Landroid/net/LocalSocket;->close()V
    :try_end_4
    .catch Ljava/io/IOException; {:try_start_4 .. :try_end_4} :catch_1

    :catch_1
    return v1

    :catchall_0
    move-exception p0

    move-object p1, v2

    move-object v2, v3

    goto :goto_1

    :catch_2
    move-object p0, v2

    move-object v2, v3

    goto :goto_2

    :catchall_1
    move-exception p0

    move-object p1, v2

    :goto_1
    if-eqz v2, :cond_7

    .line 255
    :try_start_5
    invoke-virtual {v2}, Ljava/io/InputStream;->close()V

    :cond_7
    if-eqz p1, :cond_8

    .line 256
    invoke-virtual {p1}, Ljava/io/OutputStream;->close()V

    .line 257
    :cond_8
    invoke-virtual {v0}, Landroid/net/LocalSocket;->close()V
    :try_end_5
    .catch Ljava/io/IOException; {:try_start_5 .. :try_end_5} :catch_3

    .line 258
    throw p0

    :catch_3
    return v1

    :catch_4
    move-object p0, v2

    :goto_2
    if-eqz v2, :cond_9

    .line 259
    :try_start_6
    invoke-virtual {v2}, Ljava/io/InputStream;->close()V

    :cond_9
    if-eqz p0, :cond_a

    .line 260
    invoke-virtual {p0}, Ljava/io/OutputStream;->close()V

    .line 261
    :cond_a
    invoke-virtual {v0}, Landroid/net/LocalSocket;->close()V
    :try_end_6
    .catch Ljava/io/IOException; {:try_start_6 .. :try_end_6} :catch_5

    :catch_5
    return v1
.end method

.method public static a(Ljava/lang/String;Z)Z
    .locals 2
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/estrongs/fs/impl/local/NativeException;
        }
    .end annotation

    const/4 v0, 0x1

    new-array v1, v0, [Z

    .line 139
    invoke-static {p0, p1, v0}, Lcom/estrongs/fs/impl/local/j;->a(Ljava/lang/String;ZZ)Z

    move-result p0

    const/4 p1, 0x0

    aput-boolean p0, v1, p1

    .line 140
    aget-boolean p0, v1, p1

    return p0
.end method

.method private static a(Ljava/lang/String;ZZ)Z
    .locals 3
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/estrongs/fs/impl/local/NativeException;
        }
    .end annotation

    const/4 v0, 0x0

    if-nez p0, :cond_0

    return v0

    :cond_0
    if-eqz p2, :cond_1

    const/4 p2, 0x2

    goto :goto_0

    :cond_1
    const/4 p2, 0x3

    .line 141
    :goto_0
    invoke-static {p0, p1}, Lcom/estrongs/android/util/h0;->d(Ljava/lang/String;Z)Ljava/lang/String;

    move-result-object p0

    if-nez p0, :cond_2

    return v0

    .line 142
    :cond_2
    invoke-static {}, Lcom/estrongs/fs/impl/local/j;->p()Landroid/net/LocalSocket;

    move-result-object p1

    if-nez p1, :cond_3

    return v0

    :cond_3
    const/4 v1, 0x0

    .line 143
    :try_start_0
    invoke-virtual {p1}, Landroid/net/LocalSocket;->getInputStream()Ljava/io/InputStream;

    move-result-object v2
    :try_end_0
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_3
    .catchall {:try_start_0 .. :try_end_0} :catchall_1

    .line 144
    :try_start_1
    invoke-virtual {p1}, Landroid/net/LocalSocket;->getOutputStream()Ljava/io/OutputStream;

    move-result-object v1

    .line 145
    invoke-static {v1, p2}, Lcom/estrongs/fs/impl/local/j;->a(Ljava/io/OutputStream;I)V

    .line 146
    invoke-static {v1, p0}, Lcom/estrongs/fs/impl/local/j;->a(Ljava/io/OutputStream;Ljava/lang/String;)V

    .line 147
    invoke-static {v2}, Lcom/estrongs/fs/impl/local/j;->b(Ljava/io/InputStream;)I

    move-result p0
    :try_end_1
    .catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    if-nez p0, :cond_6

    const/4 p0, 0x1

    if-eqz v2, :cond_4

    .line 148
    :try_start_2
    invoke-virtual {v2}, Ljava/io/InputStream;->close()V

    :cond_4
    if-eqz v1, :cond_5

    .line 149
    invoke-virtual {v1}, Ljava/io/OutputStream;->close()V

    .line 150
    :cond_5
    invoke-virtual {p1}, Landroid/net/LocalSocket;->close()V
    :try_end_2
    .catch Ljava/io/IOException; {:try_start_2 .. :try_end_2} :catch_0

    return p0

    :catch_0
    return v0

    .line 151
    :cond_6
    :try_start_3
    new-instance p2, Lcom/estrongs/fs/impl/local/NativeException;

    invoke-static {p0}, Lcom/estrongs/fs/impl/local/h;->a(I)Ljava/lang/String;

    move-result-object p0

    invoke-direct {p2, p0}, Lcom/estrongs/fs/impl/local/NativeException;-><init>(Ljava/lang/String;)V

    throw p2
    :try_end_3
    .catch Ljava/io/IOException; {:try_start_3 .. :try_end_3} :catch_1
    .catchall {:try_start_3 .. :try_end_3} :catchall_0

    :catchall_0
    move-exception p0

    move-object p2, v1

    move-object v1, v2

    goto :goto_1

    :catch_1
    move-object p0, v1

    move-object v1, v2

    goto :goto_2

    :catchall_1
    move-exception p0

    move-object p2, v1

    :goto_1
    if-eqz v1, :cond_7

    .line 152
    :try_start_4
    invoke-virtual {v1}, Ljava/io/InputStream;->close()V

    :cond_7
    if-eqz p2, :cond_8

    .line 153
    invoke-virtual {p2}, Ljava/io/OutputStream;->close()V

    .line 154
    :cond_8
    invoke-virtual {p1}, Landroid/net/LocalSocket;->close()V
    :try_end_4
    .catch Ljava/io/IOException; {:try_start_4 .. :try_end_4} :catch_2

    .line 155
    throw p0

    :catch_2
    return v0

    :catch_3
    move-object p0, v1

    :goto_2
    if-eqz v1, :cond_9

    .line 156
    :try_start_5
    invoke-virtual {v1}, Ljava/io/InputStream;->close()V

    :cond_9
    if-eqz p0, :cond_a

    .line 157
    invoke-virtual {p0}, Ljava/io/OutputStream;->close()V

    .line 158
    :cond_a
    invoke-virtual {p1}, Landroid/net/LocalSocket;->close()V
    :try_end_5
    .catch Ljava/io/IOException; {:try_start_5 .. :try_end_5} :catch_4

    :catch_4
    return v0
.end method

.method public static a(Ljava/io/InputStream;)[B
    .locals 2
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .line 6
    invoke-static {p0}, Lcom/estrongs/fs/impl/local/j;->b(Ljava/io/InputStream;)I

    move-result v0

    .line 7
    new-array v0, v0, [B

    .line 8
    invoke-virtual {p0, v0}, Ljava/io/InputStream;->read([B)I

    move-result p0

    const/4 v1, -0x1

    if-eq p0, v1, :cond_0

    return-object v0

    .line 9
    :cond_0
    new-instance p0, Ljava/io/IOException;

    invoke-direct {p0}, Ljava/io/IOException;-><init>()V

    throw p0
.end method

.method public static a(Ljava/lang/String;)[Ljava/lang/String;
    .locals 1

    const-string v0, "\n"

    .line 209
    invoke-virtual {p0, v0}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;

    move-result-object p0

    .line 210
    array-length v0, p0

    rem-int/lit8 v0, v0, 0x3

    if-eqz v0, :cond_0

    const/4 p0, 0x0

    :cond_0
    return-object p0
.end method

.method public static a(Z)[Ljava/lang/String;
    .locals 6

    .line 211
    invoke-static {}, Lcom/estrongs/android/pop/k;->b()I

    move-result v0

    const-string v1, "\\s+"

    const/4 v2, 0x0

    const/4 v3, 0x0

    const/16 v4, 0x15

    if-lt v0, v4, :cond_4

    .line 212
    invoke-static {}, Lcom/estrongs/fs/impl/local/j;->g()Ljava/lang/String;

    move-result-object v0

    if-nez v0, :cond_0

    return-object v3

    :cond_0
    const-string v4, "\n"

    .line 213
    invoke-virtual {v0, v4}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;

    move-result-object v0

    .line 214
    :goto_0
    array-length v4, v0

    if-ge v2, v4, :cond_3

    .line 215
    aget-object v4, v0, v2

    invoke-static {p0}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v5

    invoke-static {v4, v5}, Lcom/estrongs/fs/impl/local/j$b;->a(Ljava/lang/String;Ljava/lang/Boolean;)Ljava/lang/String;

    move-result-object v4

    if-eqz v4, :cond_2

    if-nez v3, :cond_1

    move-object v3, v4

    goto :goto_1

    .line 216
    :cond_1
    new-instance v5, Ljava/lang/StringBuilder;

    invoke-direct {v5}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v5, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v3, " "

    invoke-virtual {v5, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v5, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    :cond_2
    :goto_1
    add-int/lit8 v2, v2, 0x1

    goto :goto_0

    .line 217
    :cond_3
    invoke-virtual {v3, v1}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;

    move-result-object p0

    return-object p0

    .line 218
    :cond_4
    invoke-static {v2}, Lcom/estrongs/fs/impl/local/j;->b(Z)Lcom/estrongs/fs/impl/local/j$e;

    move-result-object v0

    if-nez v0, :cond_5

    return-object v3

    :cond_5
    const-string v2, "mount"

    .line 219
    iget-boolean v4, v0, Lcom/estrongs/fs/impl/local/j$e;->d:Z

    xor-int/lit8 v4, v4, 0x1

    .line 220
    :try_start_0
    new-instance v5, Lcom/estrongs/fs/impl/local/j$b;

    invoke-direct {v5}, Lcom/estrongs/fs/impl/local/j$b;-><init>()V

    .line 221
    iput-object v0, v5, Lcom/estrongs/fs/impl/local/j$b;->a:Ljava/lang/Object;

    .line 222
    iput-object v2, v5, Lcom/estrongs/fs/impl/local/j$b;->b:Ljava/lang/Object;

    const/4 v2, 0x5

    .line 223
    invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v2

    iput-object v2, v5, Lcom/estrongs/fs/impl/local/j$b;->c:Ljava/lang/Object;

    if-eqz p0, :cond_6

    .line 224
    invoke-static {p0}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object p0

    goto :goto_2

    :cond_6
    move-object p0, v3

    :goto_2
    iput-object p0, v5, Lcom/estrongs/fs/impl/local/j$b;->f:Ljava/lang/Object;

    .line 225
    invoke-virtual {v5}, Lcom/estrongs/fs/impl/local/j$b;->b()V

    .line 226
    iget-object p0, v5, Lcom/estrongs/fs/impl/local/j$b;->e:Ljava/lang/Object;

    check-cast p0, Ljava/lang/Boolean;

    invoke-virtual {p0}, Ljava/lang/Boolean;->booleanValue()Z

    move-result p0
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    if-nez p0, :cond_7

    .line 227
    invoke-static {v0}, Lcom/estrongs/fs/impl/local/j;->a(Lcom/estrongs/fs/impl/local/j$e;)V

    return-object v3

    .line 228
    :cond_7
    :try_start_1
    invoke-virtual {v5}, Lcom/estrongs/fs/impl/local/j$b;->c()Ljava/lang/Object;

    move-result-object p0

    check-cast p0, Ljava/lang/Boolean;

    invoke-virtual {p0}, Ljava/lang/Boolean;->booleanValue()Z

    move-result p0
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    if-nez p0, :cond_9

    if-eqz v4, :cond_8

    .line 229
    invoke-static {v0}, Lcom/estrongs/fs/impl/local/j;->a(Lcom/estrongs/fs/impl/local/j$e;)V

    goto :goto_3

    .line 230
    :cond_8
    invoke-static {v0}, Lcom/estrongs/fs/impl/local/j;->b(Lcom/estrongs/fs/impl/local/j$e;)V

    :goto_3
    return-object v3

    .line 231
    :cond_9
    :try_start_2
    iget-object p0, v5, Lcom/estrongs/fs/impl/local/j$b;->d:Ljava/lang/Object;

    check-cast p0, Ljava/lang/String;
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_0

    if-nez p0, :cond_b

    if-eqz v4, :cond_a

    .line 232
    invoke-static {v0}, Lcom/estrongs/fs/impl/local/j;->a(Lcom/estrongs/fs/impl/local/j$e;)V

    goto :goto_4

    .line 233
    :cond_a
    invoke-static {v0}, Lcom/estrongs/fs/impl/local/j;->b(Lcom/estrongs/fs/impl/local/j$e;)V

    :goto_4
    return-object v3

    .line 234
    :cond_b
    :try_start_3
    invoke-virtual {p0, v1}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;

    move-result-object p0
    :try_end_3
    .catchall {:try_start_3 .. :try_end_3} :catchall_0

    if-eqz v4, :cond_c

    .line 235
    invoke-static {v0}, Lcom/estrongs/fs/impl/local/j;->a(Lcom/estrongs/fs/impl/local/j$e;)V

    goto :goto_5

    .line 236
    :cond_c
    invoke-static {v0}, Lcom/estrongs/fs/impl/local/j;->b(Lcom/estrongs/fs/impl/local/j$e;)V

    :goto_5
    return-object p0

    :catchall_0
    move-exception p0

    if-eqz v4, :cond_d

    .line 237
    invoke-static {v0}, Lcom/estrongs/fs/impl/local/j;->a(Lcom/estrongs/fs/impl/local/j$e;)V

    goto :goto_6

    .line 238
    :cond_d
    invoke-static {v0}, Lcom/estrongs/fs/impl/local/j;->b(Lcom/estrongs/fs/impl/local/j$e;)V

    .line 239
    :goto_6
    goto :goto_8

    :goto_7
    throw p0

    :goto_8
    goto :goto_7
.end method

.method public static b()I
    .locals 5

    const/4 v0, 0x0

    .line 4
    invoke-static {v0}, Lcom/estrongs/fs/impl/local/j;->b(Z)Lcom/estrongs/fs/impl/local/j$e;

    move-result-object v1

    if-nez v1, :cond_0

    return v0

    .line 5
    :cond_0
    new-instance v2, Lcom/estrongs/fs/impl/local/j$b;

    invoke-direct {v2}, Lcom/estrongs/fs/impl/local/j$b;-><init>()V

    .line 6
    iput-object v1, v2, Lcom/estrongs/fs/impl/local/j$b;->a:Ljava/lang/Object;

    const-string v3, "uname -m"

    .line 7
    iput-object v3, v2, Lcom/estrongs/fs/impl/local/j$b;->b:Ljava/lang/Object;

    const/16 v3, 0xd

    .line 8
    invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v3

    iput-object v3, v2, Lcom/estrongs/fs/impl/local/j$b;->c:Ljava/lang/Object;

    .line 9
    invoke-virtual {v2}, Lcom/estrongs/fs/impl/local/j$b;->b()V

    .line 10
    invoke-virtual {v2}, Lcom/estrongs/fs/impl/local/j$b;->c()Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Ljava/lang/Boolean;

    invoke-virtual {v3}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v3

    if-eqz v3, :cond_6

    .line 11
    invoke-static {v1}, Lcom/estrongs/fs/impl/local/j;->b(Lcom/estrongs/fs/impl/local/j$e;)V

    .line 12
    iget-object v1, v2, Lcom/estrongs/fs/impl/local/j$b;->d:Ljava/lang/Object;

    check-cast v1, Ljava/lang/String;

    const-string v2, "Error"

    if-nez v1, :cond_1

    const-string v1, "uname result null"

    .line 13
    invoke-static {v2, v1}, Lcom/estrongs/android/util/n;->b(Ljava/lang/String;Ljava/lang/String;)V

    return v0

    .line 14
    :cond_1
    invoke-virtual {v1}, Ljava/lang/String;->toLowerCase()Ljava/lang/String;

    move-result-object v1

    .line 15
    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    const-string v4, "uname ret:"

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-static {v2, v3}, Lcom/estrongs/android/util/n;->b(Ljava/lang/String;Ljava/lang/String;)V

    const-string v2, "arm"

    .line 16
    invoke-virtual {v1, v2}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v2

    if-eqz v2, :cond_2

    const/4 v0, 0x1

    return v0

    :cond_2
    const-string v2, "x86"

    .line 17
    invoke-virtual {v1, v2}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v2

    if-nez v2, :cond_5

    const-string v2, "386"

    invoke-virtual {v1, v2}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v2

    if-nez v2, :cond_5

    const-string v2, "686"

    invoke-virtual {v1, v2}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v2

    if-eqz v2, :cond_3

    goto :goto_0

    :cond_3
    const-string v2, "mips"

    .line 18
    invoke-virtual {v1, v2}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v1

    if-eqz v1, :cond_4

    const/4 v0, 0x3

    :cond_4
    return v0

    :cond_5
    :goto_0
    const/4 v0, 0x2

    return v0

    .line 19
    :cond_6
    invoke-static {v1}, Lcom/estrongs/fs/impl/local/j;->a(Lcom/estrongs/fs/impl/local/j$e;)V

    return v0
.end method

.method public static b(Ljava/io/InputStream;)I
    .locals 2
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    const/4 v0, 0x4

    new-array v0, v0, [B

    .line 1
    invoke-virtual {p0, v0}, Ljava/io/InputStream;->read([B)I

    move-result p0

    const/4 v1, -0x1

    if-eq p0, v1, :cond_0

    const/4 p0, 0x0

    .line 2
    aget-byte p0, v0, p0

    and-int/lit16 p0, p0, 0xff

    shl-int/lit8 p0, p0, 0x18

    const/4 v1, 0x1

    aget-byte v1, v0, v1

    and-int/lit16 v1, v1, 0xff

    shl-int/lit8 v1, v1, 0x10

    or-int/2addr p0, v1

    const/4 v1, 0x2

    aget-byte v1, v0, v1

    and-int/lit16 v1, v1, 0xff

    shl-int/lit8 v1, v1, 0x8

    or-int/2addr p0, v1

    const/4 v1, 0x3

    aget-byte v0, v0, v1

    and-int/lit16 v0, v0, 0xff

    or-int/2addr p0, v0

    return p0

    .line 3
    :cond_0
    new-instance p0, Ljava/io/IOException;

    invoke-direct {p0}, Ljava/io/IOException;-><init>()V

    throw p0
.end method

.method public static b(Z)Lcom/estrongs/fs/impl/local/j$e;
    .locals 1

    const/4 v0, 0x0

    .line 20
    invoke-static {p0, v0}, Lcom/estrongs/fs/impl/local/j;->a(ZZ)Lcom/estrongs/fs/impl/local/j$e;

    move-result-object p0

    return-object p0
.end method

.method public static b(I)Ljava/lang/String;
    .locals 2

    .line 42
    sget-object v0, Lcom/estrongs/fs/impl/local/j;->a:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    if-nez v0, :cond_0

    .line 43
    invoke-static {}, Lcom/estrongs/fs/impl/local/j;->k()Z

    :cond_0
    const/4 v0, 0x0

    .line 44
    :goto_0
    sget-object v1, Lcom/estrongs/fs/impl/local/j;->a:Ljava/util/List;

    invoke-interface {v1}, Ljava/util/List;->size()I

    move-result v1

    if-ge v0, v1, :cond_2

    .line 45
    sget-object v1, Lcom/estrongs/fs/impl/local/j;->a:Ljava/util/List;

    invoke-interface {v1, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/estrongs/fs/impl/local/j$h;

    iget v1, v1, Lcom/estrongs/fs/impl/local/j$h;->a:I

    if-ne v1, p0, :cond_1

    .line 46
    sget-object p0, Lcom/estrongs/fs/impl/local/j;->a:Ljava/util/List;

    invoke-interface {p0, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object p0

    check-cast p0, Lcom/estrongs/fs/impl/local/j$h;

    iget-object p0, p0, Lcom/estrongs/fs/impl/local/j$h;->b:Ljava/lang/String;

    return-object p0

    :cond_1
    add-int/lit8 v0, v0, 0x1

    goto :goto_0

    :cond_2
    const/4 p0, 0x0

    return-object p0
.end method

.method public static b(Landroid/content/Context;)V
    .locals 2

    .line 136
    invoke-static {}, Lcom/estrongs/android/pop/k;->b()I

    move-result v0

    const/16 v1, 0x15

    if-lt v0, v1, :cond_0

    return-void

    .line 137
    :cond_0
    new-instance v0, Lcom/estrongs/android/ui/dialog/q$n;

    invoke-direct {v0, p0}, Lcom/estrongs/android/ui/dialog/q$n;-><init>(Landroid/content/Context;)V

    const v1, 0x7f11065f

    .line 138
    invoke-virtual {v0, v1}, Lcom/estrongs/android/ui/dialog/q$n;->b(I)Lcom/estrongs/android/ui/dialog/q$n;

    const v1, 0x7f110ad0

    .line 139
    invoke-virtual {v0, v1}, Lcom/estrongs/android/ui/dialog/q$n;->a(I)Lcom/estrongs/android/ui/dialog/q$n;

    const v1, 0x7f11029e

    .line 140
    invoke-virtual {p0, v1}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object p0

    const/4 v1, 0x0

    invoke-virtual {v0, p0, v1}, Lcom/estrongs/android/ui/dialog/q$n;->c(Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)Lcom/estrongs/android/ui/dialog/q$n;

    const/4 p0, 0x0

    .line 141
    invoke-virtual {v0, p0}, Lcom/estrongs/android/ui/dialog/q$n;->b(Z)Lcom/estrongs/android/ui/dialog/q$n;

    .line 142
    invoke-virtual {v0}, Lcom/estrongs/android/ui/dialog/q$n;->c()Lcom/estrongs/android/ui/dialog/q;

    return-void
.end method

.method public static b(Lcom/estrongs/fs/impl/local/j$e;)V
    .locals 2

    if-nez p0, :cond_0

    return-void

    .line 21
    :cond_0
    iget-boolean v0, p0, Lcom/estrongs/fs/impl/local/j$e;->d:Z

    if-eqz v0, :cond_2

    .line 22
    iget-boolean v0, p0, Lcom/estrongs/fs/impl/local/j$e;->e:Z

    if-eqz v0, :cond_1

    .line 23
    sget-object v0, Lcom/estrongs/fs/impl/local/j;->g:Ljava/util/Queue;

    monitor-enter v0

    .line 24
    :try_start_0
    sget-object v1, Lcom/estrongs/fs/impl/local/j;->g:Ljava/util/Queue;

    invoke-interface {v1, p0}, Ljava/util/Queue;->add(Ljava/lang/Object;)Z
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    goto :goto_0

    :catchall_0
    move-exception p0

    goto :goto_1

    .line 25
    :catch_0
    :try_start_1
    invoke-static {p0}, Lcom/estrongs/fs/impl/local/j;->a(Lcom/estrongs/fs/impl/local/j$e;)V

    .line 26
    :goto_0
    monitor-exit v0

    goto :goto_4

    :goto_1
    monitor-exit v0
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    throw p0

    .line 27
    :cond_1
    sget-object v0, Lcom/estrongs/fs/impl/local/j;->f:Ljava/util/Queue;

    monitor-enter v0

    .line 28
    :try_start_2
    sget-object v1, Lcom/estrongs/fs/impl/local/j;->f:Ljava/util/Queue;

    invoke-interface {v1, p0}, Ljava/util/Queue;->add(Ljava/lang/Object;)Z
    :try_end_2
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_1
    .catchall {:try_start_2 .. :try_end_2} :catchall_1

    goto :goto_2

    :catchall_1
    move-exception p0

    goto :goto_3

    .line 29
    :catch_1
    :try_start_3
    invoke-static {p0}, Lcom/estrongs/fs/impl/local/j;->a(Lcom/estrongs/fs/impl/local/j$e;)V

    .line 30
    :goto_2
    monitor-exit v0

    goto :goto_4

    :goto_3
    monitor-exit v0
    :try_end_3
    .catchall {:try_start_3 .. :try_end_3} :catchall_1

    throw p0

    .line 31
    :cond_2
    invoke-static {p0}, Lcom/estrongs/fs/impl/local/j;->a(Lcom/estrongs/fs/impl/local/j$e;)V

    :goto_4
    return-void
.end method

.method private static b(Ljava/lang/Object;)V
    .locals 2

    .line 33
    check-cast p0, Lcom/estrongs/fs/impl/local/j$c;

    if-eqz p0, :cond_3

    .line 34
    invoke-static {p0}, Lcom/estrongs/fs/impl/local/j$c;->h(Lcom/estrongs/fs/impl/local/j$c;)Z

    move-result v0

    if-eqz v0, :cond_0

    goto :goto_0

    :cond_0
    const/4 v0, 0x1

    .line 35
    :try_start_0
    invoke-static {p0, v0}, Lcom/estrongs/fs/impl/local/j$c;->a(Lcom/estrongs/fs/impl/local/j$c;Z)Z

    .line 36
    invoke-static {p0}, Lcom/estrongs/fs/impl/local/j$c;->g(Lcom/estrongs/fs/impl/local/j$c;)Landroid/net/LocalSocket;

    move-result-object v0

    invoke-virtual {v0}, Landroid/net/LocalSocket;->getOutputStream()Ljava/io/OutputStream;

    move-result-object v0

    .line 37
    invoke-static {p0}, Lcom/estrongs/fs/impl/local/j$c;->g(Lcom/estrongs/fs/impl/local/j$c;)Landroid/net/LocalSocket;

    move-result-object v1

    invoke-virtual {v1}, Landroid/net/LocalSocket;->getInputStream()Ljava/io/InputStream;

    move-result-object v1

    if-eqz v1, :cond_1

    .line 38
    invoke-virtual {v1}, Ljava/io/InputStream;->close()V

    :cond_1
    if-eqz v0, :cond_2

    .line 39
    invoke-virtual {v0}, Ljava/io/OutputStream;->close()V

    .line 40
    :cond_2
    invoke-static {p0}, Lcom/estrongs/fs/impl/local/j$c;->g(Lcom/estrongs/fs/impl/local/j$c;)Landroid/net/LocalSocket;

    move-result-object p0

    invoke-virtual {p0}, Landroid/net/LocalSocket;->close()V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception p0

    .line 41
    invoke-virtual {p0}, Ljava/lang/Exception;->printStackTrace()V

    :cond_3
    :goto_0
    return-void
.end method

.method public static b(Ljava/lang/String;)Z
    .locals 1
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/estrongs/fs/impl/local/NativeException;
        }
    .end annotation

    const/4 v0, 0x0

    .line 32
    invoke-static {p0, v0, v0}, Lcom/estrongs/fs/impl/local/j;->a(Ljava/lang/String;ZZ)Z

    move-result p0

    return p0
.end method

.method public static b(Ljava/lang/String;Z)Z
    .locals 8

    .line 90
    sget-object v0, Lcom/estrongs/fs/impl/local/j;->k:Ljava/lang/Object;

    monitor-enter v0

    const/4 v1, 0x0

    if-nez p0, :cond_0

    .line 91
    :try_start_0
    monitor-exit v0

    return v1

    .line 92
    :cond_0
    invoke-static {p0, v1}, Lcom/estrongs/android/util/h0;->d(Ljava/lang/String;Z)Ljava/lang/String;

    move-result-object v2

    if-nez v2, :cond_1

    .line 93
    monitor-exit v0

    return v1

    .line 94
    :cond_1
    invoke-static {}, Lcom/estrongs/fs/impl/local/j;->p()Landroid/net/LocalSocket;

    move-result-object v3

    if-nez v3, :cond_2

    .line 95
    monitor-exit v0
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_2

    return v1

    :cond_2
    const/4 v4, 0x0

    .line 96
    :try_start_1
    invoke-virtual {v3}, Landroid/net/LocalSocket;->getInputStream()Ljava/io/InputStream;

    move-result-object v5
    :try_end_1
    .catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_5
    .catchall {:try_start_1 .. :try_end_1} :catchall_1

    .line 97
    :try_start_2
    invoke-virtual {v3}, Landroid/net/LocalSocket;->getOutputStream()Ljava/io/OutputStream;

    move-result-object v4

    const/16 v6, 0x10

    .line 98
    invoke-static {v4, v6}, Lcom/estrongs/fs/impl/local/j;->a(Ljava/io/OutputStream;I)V

    .line 99
    invoke-static {v4, v2}, Lcom/estrongs/fs/impl/local/j;->a(Ljava/io/OutputStream;Ljava/lang/String;)V

    const/4 v2, 0x1

    if-eqz p1, :cond_3

    const/4 p1, 0x1

    goto :goto_0

    :cond_3
    const/4 p1, 0x0

    .line 100
    :goto_0
    invoke-static {v4, p1}, Lcom/estrongs/fs/impl/local/j;->a(Ljava/io/OutputStream;I)V

    .line 101
    invoke-static {v5}, Lcom/estrongs/fs/impl/local/j;->b(Ljava/io/InputStream;)I

    move-result p1

    if-eqz p1, :cond_b

    .line 102
    new-instance p1, Ljava/lang/StringBuilder;

    invoke-direct {p1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v7, "export LD_LIBRARY_PATH=/vendor/lib:/system/lib:$LD_LIBRARY_PATH;pm install -r "

    invoke-virtual {p1, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p0

    .line 103
    sget p1, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v7, 0x15

    if-lt p1, v7, :cond_4

    .line 104
    invoke-static {v2, v2}, Lcom/estrongs/fs/impl/local/j;->a(ZZ)Lcom/estrongs/fs/impl/local/j$e;

    move-result-object p1

    goto :goto_1

    .line 105
    :cond_4
    invoke-static {v2}, Lcom/estrongs/fs/impl/local/j;->b(Z)Lcom/estrongs/fs/impl/local/j$e;

    move-result-object p1
    :try_end_2
    .catch Ljava/io/IOException; {:try_start_2 .. :try_end_2} :catch_3
    .catchall {:try_start_2 .. :try_end_2} :catchall_0

    :goto_1
    if-nez p1, :cond_7

    if-eqz v5, :cond_5

    .line 106
    :try_start_3
    invoke-virtual {v5}, Ljava/io/InputStream;->close()V

    :cond_5
    if-eqz v4, :cond_6

    .line 107
    invoke-virtual {v4}, Ljava/io/OutputStream;->close()V

    .line 108
    :cond_6
    invoke-virtual {v3}, Landroid/net/LocalSocket;->close()V
    :try_end_3
    .catch Ljava/io/IOException; {:try_start_3 .. :try_end_3} :catch_0
    .catchall {:try_start_3 .. :try_end_3} :catchall_2

    .line 109
    :try_start_4
    monitor-exit v0

    return v1

    :catch_0
    monitor-exit v0
    :try_end_4
    .catchall {:try_start_4 .. :try_end_4} :catchall_2

    return v1

    .line 110
    :cond_7
    :try_start_5
    new-instance v2, Lcom/estrongs/fs/impl/local/j$b;

    invoke-direct {v2}, Lcom/estrongs/fs/impl/local/j$b;-><init>()V

    .line 111
    iput-object p1, v2, Lcom/estrongs/fs/impl/local/j$b;->a:Ljava/lang/Object;

    .line 112
    iput-object p0, v2, Lcom/estrongs/fs/impl/local/j$b;->b:Ljava/lang/Object;

    .line 113
    invoke-static {v6}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object p0

    iput-object p0, v2, Lcom/estrongs/fs/impl/local/j$b;->c:Ljava/lang/Object;

    .line 114
    invoke-virtual {v2}, Lcom/estrongs/fs/impl/local/j$b;->b()V

    .line 115
    iget-object p0, v2, Lcom/estrongs/fs/impl/local/j$b;->e:Ljava/lang/Object;

    check-cast p0, Ljava/lang/Boolean;

    invoke-virtual {p0}, Ljava/lang/Boolean;->booleanValue()Z

    move-result p0

    if-eqz p0, :cond_8

    invoke-static {p1}, Lcom/estrongs/fs/impl/local/j;->b(Lcom/estrongs/fs/impl/local/j$e;)V

    goto :goto_2

    .line 116
    :cond_8
    invoke-static {p1}, Lcom/estrongs/fs/impl/local/j;->a(Lcom/estrongs/fs/impl/local/j$e;)V

    .line 117
    :goto_2
    invoke-virtual {v2}, Lcom/estrongs/fs/impl/local/j$b;->c()Ljava/lang/Object;

    move-result-object p0

    check-cast p0, Ljava/lang/Boolean;

    invoke-virtual {p0}, Ljava/lang/Boolean;->booleanValue()Z

    move-result p0
    :try_end_5
    .catch Ljava/io/IOException; {:try_start_5 .. :try_end_5} :catch_3
    .catchall {:try_start_5 .. :try_end_5} :catchall_0

    if-eqz v5, :cond_9

    .line 118
    :try_start_6
    invoke-virtual {v5}, Ljava/io/InputStream;->close()V

    :cond_9
    if-eqz v4, :cond_a

    .line 119
    invoke-virtual {v4}, Ljava/io/OutputStream;->close()V

    .line 120
    :cond_a
    invoke-virtual {v3}, Landroid/net/LocalSocket;->close()V
    :try_end_6
    .catch Ljava/io/IOException; {:try_start_6 .. :try_end_6} :catch_1
    .catchall {:try_start_6 .. :try_end_6} :catchall_2

    .line 121
    :try_start_7
    monitor-exit v0

    return p0

    :catch_1
    monitor-exit v0
    :try_end_7
    .catchall {:try_start_7 .. :try_end_7} :catchall_2

    return v1

    :cond_b
    if-nez p1, :cond_c

    goto :goto_3

    :cond_c
    const/4 v2, 0x0

    :goto_3
    if-eqz v5, :cond_d

    .line 122
    :try_start_8
    invoke-virtual {v5}, Ljava/io/InputStream;->close()V

    :cond_d
    if-eqz v4, :cond_e

    .line 123
    invoke-virtual {v4}, Ljava/io/OutputStream;->close()V

    .line 124
    :cond_e
    invoke-virtual {v3}, Landroid/net/LocalSocket;->close()V
    :try_end_8
    .catch Ljava/io/IOException; {:try_start_8 .. :try_end_8} :catch_2
    .catchall {:try_start_8 .. :try_end_8} :catchall_2

    .line 125
    :try_start_9
    monitor-exit v0

    return v2

    :catch_2
    monitor-exit v0
    :try_end_9
    .catchall {:try_start_9 .. :try_end_9} :catchall_2

    return v1

    :catchall_0
    move-exception p0

    move-object p1, v4

    move-object v4, v5

    goto :goto_4

    :catch_3
    move-object p0, v4

    move-object v4, v5

    goto :goto_5

    :catchall_1
    move-exception p0

    move-object p1, v4

    :goto_4
    if-eqz v4, :cond_f

    .line 126
    :try_start_a
    invoke-virtual {v4}, Ljava/io/InputStream;->close()V

    :cond_f
    if-eqz p1, :cond_10

    .line 127
    invoke-virtual {p1}, Ljava/io/OutputStream;->close()V

    .line 128
    :cond_10
    invoke-virtual {v3}, Landroid/net/LocalSocket;->close()V
    :try_end_a
    .catch Ljava/io/IOException; {:try_start_a .. :try_end_a} :catch_4
    .catchall {:try_start_a .. :try_end_a} :catchall_2

    .line 129
    :try_start_b
    throw p0

    .line 130
    :catch_4
    monitor-exit v0
    :try_end_b
    .catchall {:try_start_b .. :try_end_b} :catchall_2

    return v1

    :catch_5
    move-object p0, v4

    :goto_5
    if-eqz v4, :cond_11

    .line 131
    :try_start_c
    invoke-virtual {v4}, Ljava/io/InputStream;->close()V

    :cond_11
    if-eqz p0, :cond_12

    .line 132
    invoke-virtual {p0}, Ljava/io/OutputStream;->close()V

    .line 133
    :cond_12
    invoke-virtual {v3}, Landroid/net/LocalSocket;->close()V
    :try_end_c
    .catch Ljava/io/IOException; {:try_start_c .. :try_end_c} :catch_6
    .catchall {:try_start_c .. :try_end_c} :catchall_2

    .line 134
    :try_start_d
    monitor-exit v0

    return v1

    :catch_6
    monitor-exit v0

    return v1

    :catchall_2
    move-exception p0

    .line 135
    monitor-exit v0
    :try_end_d
    .catchall {:try_start_d .. :try_end_d} :catchall_2

    throw p0
.end method

.method public static b([Ljava/lang/String;)Z
    .locals 11

    const/4 v0, 0x1

    .line 65
    invoke-static {v0}, Lcom/estrongs/fs/impl/local/j;->b(Z)Lcom/estrongs/fs/impl/local/j$e;

    move-result-object v1

    const/4 v2, 0x0

    if-nez v1, :cond_0

    return v2

    .line 66
    :cond_0
    iget-boolean v3, v1, Lcom/estrongs/fs/impl/local/j$e;->d:Z

    xor-int/2addr v3, v0

    :try_start_0
    const-string v4, ""

    const/4 v5, 0x0

    .line 67
    :goto_0
    array-length v6, p0

    if-ge v5, v6, :cond_3

    add-int/lit8 v6, v5, 0x2

    .line 68
    aget-object v6, p0, v6

    const-string v7, "rw"

    invoke-virtual {v6, v7}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v6
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_1

    const/16 v7, 0x15

    const-string v8, ";"

    const-string v9, " "

    if-eqz v6, :cond_1

    .line 69
    :try_start_1
    new-instance v6, Ljava/lang/StringBuilder;

    invoke-direct {v6}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v6, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v4, "mount -o remount,rw "

    invoke-virtual {v6, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    add-int/lit8 v4, v5, 0x1

    aget-object v10, p0, v4

    invoke-virtual {v6, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v6, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    aget-object v9, p0, v5

    invoke-virtual {v6, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v6, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v6

    .line 70
    invoke-static {}, Lcom/estrongs/android/pop/k;->b()I

    move-result v8

    if-lt v8, v7, :cond_2

    .line 71
    aget-object v4, p0, v4

    aget-object v7, p0, v5

    invoke-static {v4, v7, v0}, Lcom/estrongs/fs/impl/local/j;->a(Ljava/lang/String;Ljava/lang/String;Z)Z

    goto :goto_1

    .line 72
    :cond_1
    new-instance v6, Ljava/lang/StringBuilder;

    invoke-direct {v6}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v6, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v4, "mount -o remount,ro "

    invoke-virtual {v6, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    add-int/lit8 v4, v5, 0x1

    aget-object v10, p0, v4

    invoke-virtual {v6, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v6, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    aget-object v9, p0, v5

    invoke-virtual {v6, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v6, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v6

    .line 73
    invoke-static {}, Lcom/estrongs/android/pop/k;->b()I

    move-result v8

    if-lt v8, v7, :cond_2

    .line 74
    aget-object v4, p0, v4

    aget-object v7, p0, v5

    invoke-static {v4, v7, v2}, Lcom/estrongs/fs/impl/local/j;->a(Ljava/lang/String;Ljava/lang/String;Z)Z

    :cond_2
    :goto_1
    move-object v4, v6

    add-int/lit8 v5, v5, 0x3

    goto :goto_0

    .line 75
    :cond_3
    invoke-virtual {v4}, Ljava/lang/String;->length()I

    move-result p0
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_1

    if-nez p0, :cond_5

    if-eqz v3, :cond_4

    .line 76
    invoke-static {v1}, Lcom/estrongs/fs/impl/local/j;->a(Lcom/estrongs/fs/impl/local/j$e;)V

    goto :goto_2

    .line 77
    :cond_4
    invoke-static {v1}, Lcom/estrongs/fs/impl/local/j;->b(Lcom/estrongs/fs/impl/local/j$e;)V

    :goto_2
    return v0

    .line 78
    :cond_5
    :try_start_2
    new-instance p0, Lcom/estrongs/fs/impl/local/j$b;

    invoke-direct {p0}, Lcom/estrongs/fs/impl/local/j$b;-><init>()V

    .line 79
    iput-object v1, p0, Lcom/estrongs/fs/impl/local/j$b;->a:Ljava/lang/Object;

    .line 80
    iput-object v4, p0, Lcom/estrongs/fs/impl/local/j$b;->b:Ljava/lang/Object;

    const/4 v2, 0x6

    .line 81
    invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v2

    iput-object v2, p0, Lcom/estrongs/fs/impl/local/j$b;->c:Ljava/lang/Object;

    .line 82
    invoke-virtual {p0}, Lcom/estrongs/fs/impl/local/j$b;->b()V

    .line 83
    iget-object v2, p0, Lcom/estrongs/fs/impl/local/j$b;->e:Ljava/lang/Object;

    check-cast v2, Ljava/lang/Boolean;

    invoke-virtual {v2}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v2
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_1

    if-nez v2, :cond_6

    goto :goto_3

    :cond_6
    move v0, v3

    .line 84
    :goto_3
    :try_start_3
    invoke-virtual {p0}, Lcom/estrongs/fs/impl/local/j$b;->c()Ljava/lang/Object;

    move-result-object p0

    check-cast p0, Ljava/lang/Boolean;

    invoke-virtual {p0}, Ljava/lang/Boolean;->booleanValue()Z

    move-result p0
    :try_end_3
    .catchall {:try_start_3 .. :try_end_3} :catchall_0

    if-eqz v0, :cond_7

    .line 85
    invoke-static {v1}, Lcom/estrongs/fs/impl/local/j;->a(Lcom/estrongs/fs/impl/local/j$e;)V

    goto :goto_4

    .line 86
    :cond_7
    invoke-static {v1}, Lcom/estrongs/fs/impl/local/j;->b(Lcom/estrongs/fs/impl/local/j$e;)V

    :goto_4
    return p0

    :catchall_0
    move-exception p0

    move v3, v0

    goto :goto_5

    :catchall_1
    move-exception p0

    :goto_5
    if-eqz v3, :cond_8

    .line 87
    invoke-static {v1}, Lcom/estrongs/fs/impl/local/j;->a(Lcom/estrongs/fs/impl/local/j$e;)V

    goto :goto_6

    .line 88
    :cond_8
    invoke-static {v1}, Lcom/estrongs/fs/impl/local/j;->b(Lcom/estrongs/fs/impl/local/j$e;)V

    .line 89
    :goto_6
    goto :goto_8

    :goto_7
    throw p0

    :goto_8
    goto :goto_7
.end method

.method public static b(Ljava/lang/String;Ljava/lang/String;)[Ljava/lang/String;
    .locals 13

    const/4 v0, 0x1

    .line 47
    invoke-static {v0}, Lcom/estrongs/fs/impl/local/j;->a(Z)[Ljava/lang/String;

    move-result-object v1

    .line 48
    array-length v2, v1

    const/4 v3, 0x3

    div-int/2addr v2, v3

    const/4 v4, 0x1

    :goto_0
    const/4 v5, 0x0

    const/4 v6, 0x2

    if-ge v4, v2, :cond_1

    new-array v7, v3, [Ljava/lang/String;

    mul-int/lit8 v8, v4, 0x3

    .line 49
    aget-object v9, v1, v8

    aput-object v9, v7, v5

    add-int/lit8 v9, v8, 0x1

    .line 50
    aget-object v9, v1, v9

    aput-object v9, v7, v0

    add-int/2addr v8, v6

    .line 51
    aget-object v8, v1, v8

    aput-object v8, v7, v6

    move v8, v4

    :goto_1
    if-lez v8, :cond_0

    add-int/lit8 v9, v8, -0x1

    mul-int/lit8 v9, v9, 0x3

    .line 52
    aget-object v10, v1, v9

    aget-object v11, v7, v5

    invoke-virtual {v10, v11}, Ljava/lang/String;->compareTo(Ljava/lang/String;)I

    move-result v10

    if-gez v10, :cond_0

    mul-int/lit8 v10, v8, 0x3

    .line 53
    aget-object v11, v1, v9

    aput-object v11, v1, v10

    add-int/lit8 v11, v10, 0x1

    add-int/lit8 v12, v9, 0x1

    .line 54
    aget-object v12, v1, v12

    aput-object v12, v1, v11

    add-int/2addr v10, v6

    add-int/lit8 v9, v9, 0x2

    .line 55
    aget-object v9, v1, v9

    aput-object v9, v1, v10

    add-int/lit8 v8, v8, -0x1

    goto :goto_1

    :cond_0
    mul-int/lit8 v8, v8, 0x3

    .line 56
    aget-object v5, v7, v5

    aput-object v5, v1, v8

    add-int/lit8 v5, v8, 0x1

    .line 57
    aget-object v9, v7, v0

    aput-object v9, v1, v5

    add-int/2addr v8, v6

    .line 58
    aget-object v5, v7, v6

    aput-object v5, v1, v8

    add-int/lit8 v4, v4, 0x1

    goto :goto_0

    :cond_1
    const/4 v2, 0x0

    .line 59
    :goto_2
    array-length v4, v1

    div-int/2addr v4, v3

    if-ge v2, v4, :cond_5

    mul-int/lit8 v4, v2, 0x3

    .line 60
    aget-object v7, v1, v4

    invoke-static {v7, p0}, Lcom/estrongs/android/util/h0;->d(Ljava/lang/String;Ljava/lang/String;)Z

    move-result v7

    const-string v8, "/"

    if-eqz v7, :cond_2

    aget-object v7, v1, v4

    invoke-virtual {v7, v8}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v7

    if-eqz v7, :cond_3

    :cond_2
    invoke-virtual {p0, v8}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v7

    if-eqz v7, :cond_4

    aget-object v7, v1, v4

    invoke-virtual {v7, v8}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v7

    if-eqz v7, :cond_4

    :cond_3
    new-array p0, v3, [Ljava/lang/String;

    .line 61
    aget-object v2, v1, v4

    aput-object v2, p0, v5

    add-int/lit8 v2, v4, 0x1

    .line 62
    aget-object v2, v1, v2

    aput-object v2, p0, v0

    aput-object p1, p0, v6

    .line 63
    invoke-static {p0}, Lcom/estrongs/fs/impl/local/j;->b([Ljava/lang/String;)Z

    move-result p1

    if-eqz p1, :cond_5

    add-int/2addr v4, v6

    .line 64
    aget-object p1, v1, v4

    aput-object p1, p0, v6

    return-object p0

    :cond_4
    add-int/lit8 v2, v2, 0x1

    goto :goto_2

    :cond_5
    const/4 p0, 0x0

    return-object p0
.end method

.method public static c()I
    .locals 4

    .line 4
    invoke-static {}, Lcom/estrongs/fs/impl/local/j;->a()I

    move-result v0

    .line 5
    invoke-static {}, Lcom/estrongs/android/pop/k;->b()I

    move-result v1

    const/4 v2, 0x1

    const/16 v3, 0x14

    if-lt v1, v3, :cond_0

    const/4 v1, 0x1

    goto :goto_0

    :cond_0
    const/4 v1, 0x0

    :goto_0
    const v3, 0x7f100002

    if-ne v0, v2, :cond_2

    if-eqz v1, :cond_1

    const v3, 0x7f100003

    :cond_1
    return v3

    :cond_2
    const/4 v2, 0x2

    if-ne v0, v2, :cond_4

    if-eqz v1, :cond_3

    const v0, 0x7f100005

    goto :goto_1

    :cond_3
    const v0, 0x7f100004

    :goto_1
    return v0

    :cond_4
    return v3
.end method

.method private static c(Ljava/io/InputStream;)J
    .locals 6
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    const/16 v0, 0x8

    new-array v1, v0, [B

    .line 1
    invoke-virtual {p0, v1}, Ljava/io/InputStream;->read([B)I

    move-result p0

    const/4 v2, -0x1

    if-eq p0, v2, :cond_0

    const/4 p0, 0x0

    .line 2
    aget-byte p0, v1, p0

    and-int/lit16 p0, p0, 0xff

    int-to-long v2, p0

    const/16 p0, 0x38

    shl-long/2addr v2, p0

    const/4 p0, 0x1

    aget-byte p0, v1, p0

    and-int/lit16 p0, p0, 0xff

    int-to-long v4, p0

    const/16 p0, 0x30

    shl-long/2addr v4, p0

    or-long/2addr v2, v4

    const/4 p0, 0x2

    aget-byte p0, v1, p0

    and-int/lit16 p0, p0, 0xff

    int-to-long v4, p0

    const/16 p0, 0x28

    shl-long/2addr v4, p0

    or-long/2addr v2, v4

    const/4 p0, 0x3

    aget-byte p0, v1, p0

    and-int/lit16 p0, p0, 0xff

    int-to-long v4, p0

    const/16 p0, 0x20

    shl-long/2addr v4, p0

    or-long/2addr v2, v4

    const/4 p0, 0x4

    aget-byte p0, v1, p0

    and-int/lit16 p0, p0, 0xff

    int-to-long v4, p0

    const/16 p0, 0x18

    shl-long/2addr v4, p0

    or-long/2addr v2, v4

    const/4 p0, 0x5

    aget-byte p0, v1, p0

    and-int/lit16 p0, p0, 0xff

    int-to-long v4, p0

    const/16 p0, 0x10

    shl-long/2addr v4, p0

    or-long/2addr v2, v4

    const/4 p0, 0x6

    aget-byte p0, v1, p0

    and-int/lit16 p0, p0, 0xff

    int-to-long v4, p0

    shl-long/2addr v4, v0

    or-long/2addr v2, v4

    const/4 p0, 0x7

    aget-byte p0, v1, p0

    and-int/lit16 p0, p0, 0xff

    int-to-long v0, p0

    or-long/2addr v0, v2

    return-wide v0

    .line 3
    :cond_0
    new-instance p0, Ljava/io/IOException;

    invoke-direct {p0}, Ljava/io/IOException;-><init>()V

    throw p0
.end method

.method private static c(Ljava/lang/String;)Ljava/lang/String;
    .locals 2

    .line 46
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v1, "\""

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p0

    return-object p0
.end method

.method private static c(Ljava/lang/Object;)V
    .locals 7

    .line 28
    check-cast p0, Lcom/estrongs/fs/impl/local/j$d;

    .line 29
    invoke-static {}, Lcom/estrongs/fs/impl/local/j;->p()Landroid/net/LocalSocket;

    move-result-object v0

    const/4 v1, -0x1

    if-nez v0, :cond_0

    .line 30
    invoke-static {p0, v1, v1, v1}, Lcom/estrongs/fs/impl/local/j$d;->a(Lcom/estrongs/fs/impl/local/j$d;III)V

    return-void

    :cond_0
    const/4 v2, 0x0

    .line 31
    :try_start_0
    invoke-virtual {v0}, Landroid/net/LocalSocket;->getOutputStream()Ljava/io/OutputStream;

    move-result-object v3
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_1

    .line 32
    :try_start_1
    invoke-virtual {v0}, Landroid/net/LocalSocket;->getInputStream()Ljava/io/InputStream;

    move-result-object v2

    const/16 v4, 0xca

    .line 33
    invoke-static {v3, v4}, Lcom/estrongs/fs/impl/local/j;->a(Ljava/io/OutputStream;I)V

    .line 34
    invoke-static {p0}, Lcom/estrongs/fs/impl/local/j$d;->a(Lcom/estrongs/fs/impl/local/j$d;)Ljava/lang/String;

    move-result-object v4

    invoke-static {v3, v4}, Lcom/estrongs/fs/impl/local/j;->a(Ljava/io/OutputStream;Ljava/lang/String;)V

    .line 35
    invoke-static {v2}, Lcom/estrongs/fs/impl/local/j;->b(Ljava/io/InputStream;)I

    move-result v4

    if-eqz v4, :cond_1

    .line 36
    invoke-static {p0, v1, v1, v1}, Lcom/estrongs/fs/impl/local/j$d;->a(Lcom/estrongs/fs/impl/local/j$d;III)V

    return-void

    .line 37
    :cond_1
    invoke-static {v2}, Lcom/estrongs/fs/impl/local/j;->b(Ljava/io/InputStream;)I

    move-result v4

    .line 38
    invoke-static {v2}, Lcom/estrongs/fs/impl/local/j;->b(Ljava/io/InputStream;)I

    move-result v5

    .line 39
    invoke-static {v2}, Lcom/estrongs/fs/impl/local/j;->b(Ljava/io/InputStream;)I

    move-result v6

    .line 40
    invoke-static {p0, v4, v5, v6}, Lcom/estrongs/fs/impl/local/j$d;->a(Lcom/estrongs/fs/impl/local/j$d;III)V
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0

    return-void

    :catch_0
    move-exception v4

    goto :goto_0

    :catch_1
    move-exception v4

    move-object v3, v2

    .line 41
    :goto_0
    invoke-virtual {v4}, Ljava/lang/Exception;->printStackTrace()V

    if-eqz v2, :cond_2

    .line 42
    :try_start_2
    invoke-virtual {v2}, Ljava/io/InputStream;->close()V

    :cond_2
    if-eqz v3, :cond_3

    .line 43
    invoke-virtual {v3}, Ljava/io/OutputStream;->close()V

    .line 44
    :cond_3
    invoke-virtual {v0}, Landroid/net/LocalSocket;->close()V
    :try_end_2
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_2

    .line 45
    :catch_2
    invoke-static {p0, v1, v1, v1}, Lcom/estrongs/fs/impl/local/j$d;->a(Lcom/estrongs/fs/impl/local/j$d;III)V

    return-void
.end method

.method private static c(Lcom/estrongs/fs/impl/local/j$e;)Z
    .locals 4

    .line 11
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v1, " "

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const/16 v2, 0x5bbe

    invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-static {}, Lcom/estrongs/fs/impl/local/j;->h()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    .line 12
    :try_start_0
    iget-object v1, p0, Lcom/estrongs/fs/impl/local/j$e;->b:Ljava/io/BufferedWriter;

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    sget-object v3, Lcom/estrongs/fs/impl/local/j;->c:Ljava/lang/String;

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v0, "\n"

    invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v1, v0}, Ljava/io/BufferedWriter;->write(Ljava/lang/String;)V

    .line 13
    iget-object p0, p0, Lcom/estrongs/fs/impl/local/j$e;->b:Ljava/io/BufferedWriter;

    invoke-virtual {p0}, Ljava/io/BufferedWriter;->flush()V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_1

    const-wide/16 v0, 0x7d0

    .line 14
    :try_start_1
    invoke-static {v0, v1}, Ljava/lang/Thread;->sleep(J)V
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0

    :catch_0
    const/4 p0, 0x1

    return p0

    :catch_1
    const/4 p0, 0x0

    return p0
.end method

.method public static c(Ljava/lang/String;Ljava/lang/String;)Z
    .locals 3

    const/4 v0, 0x0

    if-eqz p0, :cond_4

    if-nez p1, :cond_0

    goto :goto_1

    .line 15
    :cond_0
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "mv "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-static {p0}, Lcom/estrongs/fs/impl/local/j;->c(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v2, " "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    .line 16
    invoke-static {p1}, Lcom/estrongs/fs/impl/local/j;->c(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    const/4 v1, 0x1

    .line 17
    invoke-static {v1}, Lcom/estrongs/fs/impl/local/j;->b(Z)Lcom/estrongs/fs/impl/local/j$e;

    move-result-object v1

    if-nez v1, :cond_1

    return v0

    :cond_1
    const-string v0, "rw"

    .line 18
    invoke-static {p0, v0}, Lcom/estrongs/android/util/h0;->j(Ljava/lang/String;Ljava/lang/String;)[Ljava/lang/String;

    move-result-object p0

    .line 19
    new-instance v0, Lcom/estrongs/fs/impl/local/j$b;

    invoke-direct {v0}, Lcom/estrongs/fs/impl/local/j$b;-><init>()V

    .line 20
    iput-object v1, v0, Lcom/estrongs/fs/impl/local/j$b;->a:Ljava/lang/Object;

    .line 21
    iput-object p1, v0, Lcom/estrongs/fs/impl/local/j$b;->b:Ljava/lang/Object;

    const/4 p1, 0x4

    .line 22
    invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object p1

    iput-object p1, v0, Lcom/estrongs/fs/impl/local/j$b;->c:Ljava/lang/Object;

    .line 23
    invoke-virtual {v0}, Lcom/estrongs/fs/impl/local/j$b;->b()V

    .line 24
    iget-object p1, v0, Lcom/estrongs/fs/impl/local/j$b;->e:Ljava/lang/Object;

    check-cast p1, Ljava/lang/Boolean;

    invoke-virtual {p1}, Ljava/lang/Boolean;->booleanValue()Z

    move-result p1

    if-eqz p1, :cond_2

    invoke-static {v1}, Lcom/estrongs/fs/impl/local/j;->b(Lcom/estrongs/fs/impl/local/j$e;)V

    goto :goto_0

    .line 25
    :cond_2
    invoke-static {v1}, Lcom/estrongs/fs/impl/local/j;->a(Lcom/estrongs/fs/impl/local/j$e;)V

    :goto_0
    if-eqz p0, :cond_3

    .line 26
    invoke-static {p0}, Lcom/estrongs/android/util/h0;->a([Ljava/lang/String;)Z

    .line 27
    :cond_3
    invoke-virtual {v0}, Lcom/estrongs/fs/impl/local/j$b;->c()Ljava/lang/Object;

    move-result-object p0

    check-cast p0, Ljava/lang/Boolean;

    invoke-virtual {p0}, Ljava/lang/Boolean;->booleanValue()Z

    move-result p0

    return p0

    :cond_4
    :goto_1
    return v0
.end method

.method public static c(Z)Z
    .locals 10

    const/4 v0, 0x6

    new-array v1, v0, [Ljava/lang/String;

    const-string v2, "/system/xbin/su"

    const/4 v3, 0x0

    aput-object v2, v1, v3

    const-string v2, "/system/sbin/su"

    const/4 v4, 0x1

    aput-object v2, v1, v4

    const-string v2, "/system/bin/su"

    const/4 v5, 0x2

    aput-object v2, v1, v5

    const-string v2, "/vendor/bin/su"

    const/4 v6, 0x3

    aput-object v2, v1, v6

    const-string v2, "/sbin/su"

    const/4 v7, 0x4

    aput-object v2, v1, v7

    const-string v2, "/su/bin"

    const/4 v8, 0x5

    aput-object v2, v1, v8

    new-array v2, v0, [Ljava/lang/String;

    const-string v9, "/system/xbin/daemonsu"

    aput-object v9, v2, v3

    const-string v9, "/system/sbin/daemonsu"

    aput-object v9, v2, v4

    const-string v9, "/system/bin/daemonsu"

    aput-object v9, v2, v5

    const-string v5, "/vendor/bin/daemonsu"

    aput-object v5, v2, v6

    const-string v5, "/sbin/daemonsu"

    aput-object v5, v2, v7

    const-string v5, "/su/bin/daemonsu"

    aput-object v5, v2, v8

    const/4 v5, 0x0

    :goto_0
    if-ge v5, v0, :cond_4

    .line 6
    :try_start_0
    new-instance v6, Ljava/io/File;

    aget-object v7, v1, v5

    invoke-direct {v6, v7}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 7
    invoke-virtual {v6}, Ljava/io/File;->exists()Z

    move-result v6

    if-eqz v6, :cond_3

    if-eqz p0, :cond_2

    .line 8
    invoke-static {}, Lcom/estrongs/android/pop/k;->b()I

    move-result v6

    const/16 v7, 0x12

    if-lt v6, v7, :cond_1

    const/4 v6, 0x0

    :goto_1
    if-ge v6, v0, :cond_3

    .line 9
    new-instance v7, Ljava/io/File;

    aget-object v8, v2, v6

    invoke-direct {v7, v8}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    invoke-virtual {v7}, Ljava/io/File;->exists()Z

    move-result v7

    if-eqz v7, :cond_0

    return v4

    :cond_0
    add-int/lit8 v6, v6, 0x1

    goto :goto_1

    .line 10
    :cond_1
    aget-object v6, v1, v5

    invoke-static {v6}, Les/xj;->c(Ljava/lang/String;)Z

    move-result p0
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    return p0

    :cond_2
    return v4

    :catch_0
    :cond_3
    add-int/lit8 v5, v5, 0x1

    goto :goto_0

    :cond_4
    return v3
.end method

.method public static d(Ljava/lang/String;)Lcom/estrongs/fs/e;
    .locals 15

    const/4 v0, 0x1

    new-array v1, v0, [Lcom/estrongs/fs/e;

    const/4 v2, 0x0

    if-nez p0, :cond_0

    return-object v2

    .line 12
    :cond_0
    invoke-static {p0}, Lcom/estrongs/android/util/h0;->W(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    if-nez v3, :cond_1

    return-object v2

    .line 13
    :cond_1
    invoke-static {}, Lcom/estrongs/fs/impl/local/j;->p()Landroid/net/LocalSocket;

    move-result-object v4

    if-nez v4, :cond_2

    return-object v2

    .line 14
    :cond_2
    :try_start_0
    invoke-virtual {v4}, Landroid/net/LocalSocket;->getInputStream()Ljava/io/InputStream;

    move-result-object v5
    :try_end_0
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_4
    .catchall {:try_start_0 .. :try_end_0} :catchall_2

    .line 15
    :try_start_1
    invoke-virtual {v4}, Landroid/net/LocalSocket;->getOutputStream()Ljava/io/OutputStream;

    move-result-object v6
    :try_end_1
    .catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_2
    .catchall {:try_start_1 .. :try_end_1} :catchall_1

    const/16 v7, 0x9

    .line 16
    :try_start_2
    invoke-static {v6, v7}, Lcom/estrongs/fs/impl/local/j;->a(Ljava/io/OutputStream;I)V

    .line 17
    invoke-static {v6, v3}, Lcom/estrongs/fs/impl/local/j;->a(Ljava/io/OutputStream;Ljava/lang/String;)V

    .line 18
    invoke-static {v5}, Lcom/estrongs/fs/impl/local/j;->b(Ljava/io/InputStream;)I

    move-result v3
    :try_end_2
    .catch Ljava/io/IOException; {:try_start_2 .. :try_end_2} :catch_5
    .catchall {:try_start_2 .. :try_end_2} :catchall_0

    if-eqz v3, :cond_5

    if-eqz v5, :cond_3

    .line 19
    :try_start_3
    invoke-virtual {v5}, Ljava/io/InputStream;->close()V

    :cond_3
    if-eqz v6, :cond_4

    .line 20
    invoke-virtual {v6}, Ljava/io/OutputStream;->close()V

    .line 21
    :cond_4
    invoke-virtual {v4}, Landroid/net/LocalSocket;->close()V
    :try_end_3
    .catch Ljava/io/IOException; {:try_start_3 .. :try_end_3} :catch_0

    :catch_0
    return-object v2

    .line 22
    :cond_5
    :try_start_4
    invoke-static {v5}, Lcom/estrongs/fs/impl/local/j;->d(Ljava/io/InputStream;)Ljava/lang/String;

    move-result-object v3

    .line 23
    invoke-static {v5}, Lcom/estrongs/fs/impl/local/j;->b(Ljava/io/InputStream;)I

    move-result v7

    .line 24
    invoke-static {v5}, Lcom/estrongs/fs/impl/local/j;->b(Ljava/io/InputStream;)I

    move-result v8

    int-to-long v9, v7

    const/16 v7, 0x20

    shl-long/2addr v9, v7

    int-to-long v7, v8

    add-long/2addr v9, v7

    .line 25
    invoke-static {v5}, Lcom/estrongs/fs/impl/local/j;->b(Ljava/io/InputStream;)I

    move-result v7

    .line 26
    invoke-static {v5}, Lcom/estrongs/fs/impl/local/j;->b(Ljava/io/InputStream;)I

    .line 27
    invoke-static {v5}, Lcom/estrongs/fs/impl/local/j;->d(Ljava/io/InputStream;)Ljava/lang/String;

    move-result-object v8

    .line 28
    new-instance v11, Lcom/estrongs/fs/e;

    const-string v12, ""

    invoke-direct {v11, v12}, Lcom/estrongs/fs/e;-><init>(Ljava/lang/String;)V

    .line 29
    iput-object v8, v11, Lcom/estrongs/fs/e;->n:Ljava/lang/String;

    const/4 v8, 0x0

    .line 30
    invoke-virtual {v3, v8}, Ljava/lang/String;->charAt(I)C

    move-result v12

    const/16 v13, 0x64

    const/16 v14, 0x65

    if-eq v12, v13, :cond_7

    invoke-virtual {v3, v8}, Ljava/lang/String;->charAt(I)C

    move-result v12

    if-ne v12, v14, :cond_6

    goto :goto_0

    :cond_6
    const/4 v12, 0x0

    goto :goto_1

    :cond_7
    :goto_0
    const/4 v12, 0x1

    :goto_1
    iput-boolean v12, v11, Lcom/estrongs/fs/e;->c:Z

    .line 31
    iput-object p0, v11, Lcom/estrongs/fs/e;->a:Ljava/lang/String;

    if-eqz v12, :cond_8

    const-wide/16 v9, 0x0

    .line 32
    iput-wide v9, v11, Lcom/estrongs/fs/e;->d:J

    goto :goto_2

    .line 33
    :cond_8
    iput-wide v9, v11, Lcom/estrongs/fs/e;->d:J

    :goto_2
    int-to-long v9, v7

    .line 34
    iput-wide v9, v11, Lcom/estrongs/fs/e;->i:J

    const-wide/16 v12, 0x3e8

    mul-long v9, v9, v12

    .line 35
    iput-wide v9, v11, Lcom/estrongs/fs/e;->i:J

    const/16 p0, 0xa

    .line 36
    invoke-virtual {v3, v0, p0}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object p0

    iput-object p0, v11, Lcom/estrongs/fs/e;->o:Ljava/lang/String;

    .line 37
    iget-object p0, v11, Lcom/estrongs/fs/e;->n:Ljava/lang/String;

    invoke-virtual {p0, v8}, Ljava/lang/String;->charAt(I)C

    move-result p0

    const/16 v7, 0x2e

    if-ne p0, v7, :cond_9

    const/4 p0, 0x1

    goto :goto_3

    :cond_9
    const/4 p0, 0x0

    :goto_3
    iput-boolean p0, v11, Lcom/estrongs/fs/e;->l:Z

    .line 38
    iget-object p0, v11, Lcom/estrongs/fs/e;->a:Ljava/lang/String;

    invoke-static {p0}, Lcom/estrongs/android/util/h0;->X1(Ljava/lang/String;)Z

    move-result p0

    const/16 v7, 0x77

    const/16 v9, 0x72

    if-eqz p0, :cond_c

    .line 39
    iget-object p0, v11, Lcom/estrongs/fs/e;->o:Ljava/lang/String;

    const/4 v10, 0x3

    invoke-virtual {p0, v10}, Ljava/lang/String;->charAt(I)C

    move-result p0

    if-ne p0, v9, :cond_a

    const/4 p0, 0x1

    goto :goto_4

    :cond_a
    const/4 p0, 0x0

    :goto_4
    iput-boolean p0, v11, Lcom/estrongs/fs/e;->j:Z

    .line 40
    iget-object p0, v11, Lcom/estrongs/fs/e;->o:Ljava/lang/String;

    const/4 v9, 0x4

    invoke-virtual {p0, v9}, Ljava/lang/String;->charAt(I)C

    move-result p0

    if-ne p0, v7, :cond_b

    const/4 p0, 0x1

    goto :goto_5

    :cond_b
    const/4 p0, 0x0

    :goto_5
    iput-boolean p0, v11, Lcom/estrongs/fs/e;->k:Z

    goto :goto_8

    .line 41
    :cond_c
    iget-object p0, v11, Lcom/estrongs/fs/e;->o:Ljava/lang/String;

    invoke-virtual {p0, v8}, Ljava/lang/String;->charAt(I)C

    move-result p0

    if-ne p0, v9, :cond_d

    const/4 p0, 0x1

    goto :goto_6

    :cond_d
    const/4 p0, 0x0

    :goto_6
    iput-boolean p0, v11, Lcom/estrongs/fs/e;->j:Z

    .line 42
    iget-object p0, v11, Lcom/estrongs/fs/e;->o:Ljava/lang/String;

    invoke-virtual {p0, v0}, Ljava/lang/String;->charAt(I)C

    move-result p0

    if-ne p0, v7, :cond_e

    const/4 p0, 0x1

    goto :goto_7

    :cond_e
    const/4 p0, 0x0

    :goto_7
    iput-boolean p0, v11, Lcom/estrongs/fs/e;->k:Z

    .line 43
    :goto_8
    invoke-virtual {v3, v8}, Ljava/lang/String;->charAt(I)C

    move-result p0

    const/16 v7, 0x6c

    if-eq p0, v7, :cond_f

    invoke-virtual {v3, v8}, Ljava/lang/String;->charAt(I)C

    move-result p0

    if-ne p0, v14, :cond_10

    .line 44
    :cond_f
    iput-boolean v0, v11, Lcom/estrongs/fs/e;->m:Z

    :cond_10
    aput-object v11, v1, v8
    :try_end_4
    .catch Ljava/io/IOException; {:try_start_4 .. :try_end_4} :catch_5
    .catchall {:try_start_4 .. :try_end_4} :catchall_0

    if-eqz v5, :cond_11

    .line 45
    :try_start_5
    invoke-virtual {v5}, Ljava/io/InputStream;->close()V

    :cond_11
    if-eqz v6, :cond_12

    .line 46
    invoke-virtual {v6}, Ljava/io/OutputStream;->close()V

    .line 47
    :cond_12
    invoke-virtual {v4}, Landroid/net/LocalSocket;->close()V
    :try_end_5
    .catch Ljava/io/IOException; {:try_start_5 .. :try_end_5} :catch_1

    .line 48
    :catch_1
    aget-object p0, v1, v8

    return-object p0

    :catchall_0
    move-exception p0

    goto :goto_9

    :catchall_1
    move-exception p0

    move-object v6, v2

    :goto_9
    move-object v2, v5

    goto :goto_a

    :catch_2
    move-object v6, v2

    goto :goto_b

    :catchall_2
    move-exception p0

    move-object v6, v2

    :goto_a
    if-eqz v2, :cond_13

    .line 49
    :try_start_6
    invoke-virtual {v2}, Ljava/io/InputStream;->close()V

    :cond_13
    if-eqz v6, :cond_14

    .line 50
    invoke-virtual {v6}, Ljava/io/OutputStream;->close()V

    .line 51
    :cond_14
    invoke-virtual {v4}, Landroid/net/LocalSocket;->close()V
    :try_end_6
    .catch Ljava/io/IOException; {:try_start_6 .. :try_end_6} :catch_3

    .line 52
    :catch_3
    throw p0

    :catch_4
    move-object v5, v2

    move-object v6, v5

    :catch_5
    :goto_b
    if-eqz v5, :cond_15

    .line 53
    :try_start_7
    invoke-virtual {v5}, Ljava/io/InputStream;->close()V

    :cond_15
    if-eqz v6, :cond_16

    .line 54
    invoke-virtual {v6}, Ljava/io/OutputStream;->close()V

    .line 55
    :cond_16
    invoke-virtual {v4}, Landroid/net/LocalSocket;->close()V
    :try_end_7
    .catch Ljava/io/IOException; {:try_start_7 .. :try_end_7} :catch_6

    :catch_6
    return-object v2
.end method

.method public static d()Ljava/lang/String;
    .locals 1

    .line 2
    sget-object v0, Lcom/estrongs/fs/impl/local/j;->c:Ljava/lang/String;

    return-object v0
.end method

.method public static d(Ljava/io/InputStream;)Ljava/lang/String;
    .locals 1
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .line 1
    new-instance v0, Ljava/lang/String;

    invoke-static {p0}, Lcom/estrongs/fs/impl/local/j;->a(Ljava/io/InputStream;)[B

    move-result-object p0

    invoke-direct {v0, p0}, Ljava/lang/String;-><init>([B)V

    return-object v0
.end method

.method private static d(Ljava/lang/Object;)V
    .locals 5

    .line 56
    check-cast p0, Lcom/estrongs/fs/impl/local/j$c;

    .line 57
    invoke-static {}, Lcom/estrongs/fs/impl/local/j;->p()Landroid/net/LocalSocket;

    move-result-object v0

    const/4 v1, 0x0

    if-nez v0, :cond_0

    .line 58
    invoke-virtual {p0, v1}, Lcom/estrongs/fs/impl/local/j$c;->a(Z)V

    return-void

    :cond_0
    const/4 v2, 0x0

    .line 59
    :try_start_0
    invoke-virtual {v0}, Landroid/net/LocalSocket;->getOutputStream()Ljava/io/OutputStream;

    move-result-object v3
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_1

    .line 60
    :try_start_1
    invoke-virtual {v0}, Landroid/net/LocalSocket;->getInputStream()Ljava/io/InputStream;

    move-result-object v2

    const/16 v4, 0xc8

    .line 61
    invoke-static {v3, v4}, Lcom/estrongs/fs/impl/local/j;->a(Ljava/io/OutputStream;I)V

    .line 62
    invoke-static {p0}, Lcom/estrongs/fs/impl/local/j$c;->f(Lcom/estrongs/fs/impl/local/j$c;)Ljava/lang/String;

    move-result-object v4

    invoke-static {v3, v4}, Lcom/estrongs/fs/impl/local/j;->a(Ljava/io/OutputStream;Ljava/lang/String;)V

    .line 63
    invoke-static {v2}, Lcom/estrongs/fs/impl/local/j;->b(Ljava/io/InputStream;)I

    move-result v4

    if-eqz v4, :cond_1

    .line 64
    invoke-virtual {p0, v1}, Lcom/estrongs/fs/impl/local/j$c;->a(Z)V

    return-void

    .line 65
    :cond_1
    invoke-static {p0, v0}, Lcom/estrongs/fs/impl/local/j$c;->a(Lcom/estrongs/fs/impl/local/j$c;Landroid/net/LocalSocket;)Landroid/net/LocalSocket;

    const/4 v4, 0x1

    .line 66
    invoke-virtual {p0, v4}, Lcom/estrongs/fs/impl/local/j$c;->a(Z)V
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0

    return-void

    :catch_0
    move-exception v4

    goto :goto_0

    :catch_1
    move-exception v4

    move-object v3, v2

    .line 67
    :goto_0
    invoke-virtual {v4}, Ljava/lang/Exception;->printStackTrace()V

    if-eqz v2, :cond_2

    .line 68
    :try_start_2
    invoke-virtual {v2}, Ljava/io/InputStream;->close()V

    :cond_2
    if-eqz v3, :cond_3

    .line 69
    invoke-virtual {v3}, Ljava/io/OutputStream;->close()V

    .line 70
    :cond_3
    invoke-virtual {v0}, Landroid/net/LocalSocket;->close()V
    :try_end_2
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_2

    .line 71
    :catch_2
    invoke-virtual {p0, v1}, Lcom/estrongs/fs/impl/local/j$c;->a(Z)V

    return-void
.end method

.method public static d(Z)Z
    .locals 11

    const-string v0, "/"

    const-string v1, "su"

    const-string v2, "daemonsu"

    const-string v3, "PATH"

    .line 3
    invoke-static {v3}, Ljava/lang/System;->getenv(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    const/4 v4, 0x0

    if-eqz v3, :cond_4

    const-string v5, ":"

    .line 4
    invoke-virtual {v3, v5}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;

    move-result-object v3

    if-eqz v3, :cond_4

    const/4 v5, 0x0

    .line 5
    :goto_0
    array-length v6, v3

    if-ge v5, v6, :cond_4

    .line 6
    :try_start_0
    new-instance v6, Ljava/io/File;

    new-instance v7, Ljava/lang/StringBuilder;

    invoke-direct {v7}, Ljava/lang/StringBuilder;-><init>()V

    aget-object v8, v3, v5

    invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v7, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v7, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v7}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v7

    invoke-direct {v6, v7}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 7
    invoke-virtual {v6}, Ljava/io/File;->exists()Z

    move-result v6

    if-eqz v6, :cond_3

    const/4 v6, 0x1

    if-eqz p0, :cond_2

    .line 8
    invoke-static {}, Lcom/estrongs/android/pop/k;->b()I

    move-result v7

    const/16 v8, 0x12

    if-lt v7, v8, :cond_1

    const/4 v7, 0x0

    .line 9
    :goto_1
    array-length v8, v3

    if-ge v7, v8, :cond_3

    .line 10
    new-instance v8, Ljava/io/File;

    new-instance v9, Ljava/lang/StringBuilder;

    invoke-direct {v9}, Ljava/lang/StringBuilder;-><init>()V

    aget-object v10, v3, v7

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v9, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v9, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v9}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v9

    invoke-direct {v8, v9}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    invoke-virtual {v8}, Ljava/io/File;->exists()Z

    move-result v8

    if-eqz v8, :cond_0

    return v6

    :cond_0
    add-int/lit8 v7, v7, 0x1

    goto :goto_1

    .line 11
    :cond_1
    new-instance v6, Ljava/lang/StringBuilder;

    invoke-direct {v6}, Ljava/lang/StringBuilder;-><init>()V

    aget-object v7, v3, v5

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v6, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v6, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v6

    invoke-static {v6}, Les/xj;->c(Ljava/lang/String;)Z

    move-result p0
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    return p0

    :cond_2
    return v6

    :catch_0
    :cond_3
    add-int/lit8 v5, v5, 0x1

    goto :goto_0

    :cond_4
    return v4
.end method

.method public static e(Ljava/lang/String;)Ljava/io/InputStream;
    .locals 5

    const/4 v0, 0x0

    if-nez p0, :cond_0

    return-object v0

    .line 57
    :cond_0
    invoke-static {p0}, Lcom/estrongs/android/util/h0;->W(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p0

    if-nez p0, :cond_1

    return-object v0

    :cond_1
    const/16 v1, 0xb

    .line 58
    invoke-static {}, Lcom/estrongs/fs/impl/local/j;->p()Landroid/net/LocalSocket;

    move-result-object v2

    if-nez v2, :cond_2

    return-object v0

    .line 59
    :cond_2
    :try_start_0
    invoke-virtual {v2}, Landroid/net/LocalSocket;->getOutputStream()Ljava/io/OutputStream;

    move-result-object v3
    :try_end_0
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_3
    .catchall {:try_start_0 .. :try_end_0} :catchall_2

    .line 60
    :try_start_1
    invoke-virtual {v2}, Landroid/net/LocalSocket;->getInputStream()Ljava/io/InputStream;

    move-result-object v4
    :try_end_1
    .catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_1

    .line 61
    :try_start_2
    invoke-static {v3, v1}, Lcom/estrongs/fs/impl/local/j;->a(Ljava/io/OutputStream;I)V

    .line 62
    invoke-static {v3, p0}, Lcom/estrongs/fs/impl/local/j;->a(Ljava/io/OutputStream;Ljava/lang/String;)V

    .line 63
    invoke-static {v4}, Lcom/estrongs/fs/impl/local/j;->b(Ljava/io/InputStream;)I

    move-result p0
    :try_end_2
    .catch Ljava/io/IOException; {:try_start_2 .. :try_end_2} :catch_4
    .catchall {:try_start_2 .. :try_end_2} :catchall_0

    if-eqz p0, :cond_5

    if-eqz v4, :cond_3

    .line 64
    :try_start_3
    invoke-virtual {v4}, Ljava/io/InputStream;->close()V

    :cond_3
    if-eqz v3, :cond_4

    .line 65
    invoke-virtual {v3}, Ljava/io/OutputStream;->close()V

    .line 66
    :cond_4
    invoke-virtual {v2}, Landroid/net/LocalSocket;->close()V
    :try_end_3
    .catch Ljava/io/IOException; {:try_start_3 .. :try_end_3} :catch_0

    :catch_0
    return-object v0

    .line 67
    :cond_5
    :try_start_4
    new-instance p0, Lcom/estrongs/fs/impl/local/j$f;

    invoke-direct {p0, v2, v4, v3}, Lcom/estrongs/fs/impl/local/j$f;-><init>(Landroid/net/LocalSocket;Ljava/io/InputStream;Ljava/io/OutputStream;)V
    :try_end_4
    .catch Ljava/io/IOException; {:try_start_4 .. :try_end_4} :catch_4
    .catchall {:try_start_4 .. :try_end_4} :catchall_0

    return-object p0

    :catchall_0
    move-exception p0

    goto :goto_0

    :catchall_1
    move-exception p0

    move-object v4, v0

    goto :goto_0

    :catch_1
    move-object v4, v0

    goto :goto_1

    :catchall_2
    move-exception p0

    move-object v3, v0

    move-object v4, v3

    :goto_0
    if-eqz v4, :cond_6

    .line 68
    :try_start_5
    invoke-virtual {v4}, Ljava/io/InputStream;->close()V

    :cond_6
    if-eqz v3, :cond_7

    .line 69
    invoke-virtual {v3}, Ljava/io/OutputStream;->close()V

    .line 70
    :cond_7
    invoke-virtual {v2}, Landroid/net/LocalSocket;->close()V
    :try_end_5
    .catch Ljava/io/IOException; {:try_start_5 .. :try_end_5} :catch_2

    .line 71
    throw p0

    :catch_2
    return-object v0

    :catch_3
    move-object v3, v0

    move-object v4, v3

    :catch_4
    :goto_1
    if-eqz v4, :cond_8

    .line 72
    :try_start_6
    invoke-virtual {v4}, Ljava/io/InputStream;->close()V

    :cond_8
    if-eqz v3, :cond_9

    .line 73
    invoke-virtual {v3}, Ljava/io/OutputStream;->close()V

    .line 74
    :cond_9
    invoke-virtual {v2}, Landroid/net/LocalSocket;->close()V
    :try_end_6
    .catch Ljava/io/IOException; {:try_start_6 .. :try_end_6} :catch_5

    :catch_5
    return-object v0
.end method

.method private static e(Ljava/lang/Object;)V
    .locals 6

    .line 36
    check-cast p0, Lcom/estrongs/fs/impl/local/j$c;

    const/4 v0, -0x1

    if-eqz p0, :cond_5

    .line 37
    invoke-static {p0}, Lcom/estrongs/fs/impl/local/j$c;->h(Lcom/estrongs/fs/impl/local/j$c;)Z

    move-result v1

    if-eqz v1, :cond_0

    goto :goto_2

    .line 38
    :cond_0
    :try_start_0
    invoke-static {p0}, Lcom/estrongs/fs/impl/local/j$c;->g(Lcom/estrongs/fs/impl/local/j$c;)Landroid/net/LocalSocket;

    move-result-object v1

    invoke-virtual {v1}, Landroid/net/LocalSocket;->getOutputStream()Ljava/io/OutputStream;

    move-result-object v1

    .line 39
    invoke-static {p0}, Lcom/estrongs/fs/impl/local/j$c;->g(Lcom/estrongs/fs/impl/local/j$c;)Landroid/net/LocalSocket;

    move-result-object v2

    invoke-virtual {v2}, Landroid/net/LocalSocket;->getInputStream()Ljava/io/InputStream;

    move-result-object v2

    const/16 v3, 0xb

    .line 40
    invoke-static {v1, v3}, Lcom/estrongs/fs/impl/local/j;->a(Ljava/io/OutputStream;I)V

    .line 41
    invoke-static {p0}, Lcom/estrongs/fs/impl/local/j$c;->i(Lcom/estrongs/fs/impl/local/j$c;)I

    move-result v3

    invoke-static {v1, v3}, Lcom/estrongs/fs/impl/local/j;->a(Ljava/io/OutputStream;I)V

    .line 42
    invoke-static {v2}, Lcom/estrongs/fs/impl/local/j;->b(Ljava/io/InputStream;)I

    move-result v1

    if-gez v1, :cond_1

    .line 43
    invoke-virtual {p0, v1}, Lcom/estrongs/fs/impl/local/j$c;->a(I)V

    return-void

    :cond_1
    move v3, v1

    :goto_0
    if-lez v3, :cond_3

    .line 44
    invoke-static {p0}, Lcom/estrongs/fs/impl/local/j$c;->j(Lcom/estrongs/fs/impl/local/j$c;)[B

    move-result-object v4

    invoke-static {p0}, Lcom/estrongs/fs/impl/local/j$c;->k(Lcom/estrongs/fs/impl/local/j$c;)I

    move-result v5

    add-int/2addr v5, v1

    sub-int/2addr v5, v3

    invoke-virtual {v2, v4, v5, v3}, Ljava/io/InputStream;->read([BII)I

    move-result v4

    if-gtz v4, :cond_2

    goto :goto_1

    :cond_2
    sub-int/2addr v3, v4

    goto :goto_0

    :cond_3
    :goto_1
    if-nez v3, :cond_4

    .line 45
    invoke-virtual {p0, v1}, Lcom/estrongs/fs/impl/local/j$c;->a(I)V

    return-void

    .line 46
    :cond_4
    new-instance v1, Ljava/io/IOException;

    const-string v2, "Cannot finish reading data."

    invoke-direct {v1, v2}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V

    throw v1
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :catch_0
    move-exception v1

    .line 47
    invoke-virtual {v1}, Ljava/lang/Exception;->printStackTrace()V

    .line 48
    invoke-static {p0}, Lcom/estrongs/fs/impl/local/j;->a(Ljava/lang/Object;)V

    .line 49
    invoke-virtual {p0, v0}, Lcom/estrongs/fs/impl/local/j$c;->a(I)V

    return-void

    .line 50
    :cond_5
    :goto_2
    invoke-virtual {p0, v0}, Lcom/estrongs/fs/impl/local/j$c;->a(I)V

    return-void
.end method

.method public static e(Z)Z
    .locals 5

    const/4 p0, 0x0

    const/4 v0, 0x0

    .line 1
    :try_start_0
    invoke-static {}, Lcom/estrongs/fs/impl/local/j;->p()Landroid/net/LocalSocket;

    move-result-object v1
    :try_end_0
    .catch Ljava/lang/SecurityException; {:try_start_0 .. :try_end_0} :catch_3
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_2
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    const/4 v2, 0x1

    if-eqz v1, :cond_0

    .line 2
    :try_start_1
    invoke-virtual {v1}, Landroid/net/LocalSocket;->close()V
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    .line 3
    :catch_0
    :try_start_2
    sput-boolean v2, Lcom/estrongs/fs/impl/local/j;->h:Z
    :try_end_2
    .catch Ljava/lang/SecurityException; {:try_start_2 .. :try_end_2} :catch_3
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_0

    .line 4
    invoke-static {v0}, Lcom/estrongs/fs/impl/local/j;->a(Lcom/estrongs/fs/impl/local/j$e;)V

    return v2

    .line 5
    :cond_0
    :try_start_3
    invoke-static {}, Lcom/estrongs/fs/impl/local/j;->l()Z

    move-result v1

    if-nez v1, :cond_1

    .line 6
    sput-boolean p0, Lcom/estrongs/fs/impl/local/j;->h:Z
    :try_end_3
    .catch Ljava/lang/SecurityException; {:try_start_3 .. :try_end_3} :catch_3
    .catch Ljava/lang/Exception; {:try_start_3 .. :try_end_3} :catch_2
    .catchall {:try_start_3 .. :try_end_3} :catchall_0

    .line 7
    invoke-static {v0}, Lcom/estrongs/fs/impl/local/j;->a(Lcom/estrongs/fs/impl/local/j$e;)V

    return p0

    .line 8
    :cond_1
    :try_start_4
    invoke-static {v2}, Lcom/estrongs/fs/impl/local/j;->b(Z)Lcom/estrongs/fs/impl/local/j$e;

    move-result-object v0

    if-eqz v0, :cond_5

    .line 9
    sput-boolean v2, Lcom/estrongs/fs/impl/local/j;->h:Z

    .line 10
    new-instance v1, Ljava/io/File;

    sget-object v3, Lcom/estrongs/fs/impl/local/j;->c:Ljava/lang/String;

    invoke-direct {v1, v3}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 11
    invoke-virtual {v1, v2, p0}, Ljava/io/File;->setReadable(ZZ)Z

    .line 12
    invoke-virtual {v1, v2, p0}, Ljava/io/File;->setExecutable(ZZ)Z

    .line 13
    invoke-static {v0}, Lcom/estrongs/fs/impl/local/j;->c(Lcom/estrongs/fs/impl/local/j$e;)Z

    move-result v1

    if-nez v1, :cond_2

    .line 14
    sput-boolean p0, Lcom/estrongs/fs/impl/local/j;->h:Z

    goto :goto_0

    .line 15
    :cond_2
    invoke-static {}, Lcom/estrongs/fs/impl/local/j;->p()Landroid/net/LocalSocket;

    move-result-object v1

    if-nez v1, :cond_3

    .line 16
    sput-boolean p0, Lcom/estrongs/fs/impl/local/j;->h:Z
    :try_end_4
    .catch Ljava/lang/SecurityException; {:try_start_4 .. :try_end_4} :catch_3
    .catch Ljava/lang/Exception; {:try_start_4 .. :try_end_4} :catch_2
    .catchall {:try_start_4 .. :try_end_4} :catchall_0

    goto :goto_0

    .line 17
    :cond_3
    :try_start_5
    invoke-virtual {v1}, Landroid/net/LocalSocket;->close()V
    :try_end_5
    .catch Ljava/lang/Exception; {:try_start_5 .. :try_end_5} :catch_1
    .catchall {:try_start_5 .. :try_end_5} :catchall_0

    :catch_1
    :goto_0
    :try_start_6
    const-string v1, "ES"

    .line 18
    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v3, "SU Check result:"

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    sget-boolean v3, Lcom/estrongs/fs/impl/local/j;->h:Z

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-static {v1, v2}, Lcom/estrongs/android/util/n;->b(Ljava/lang/String;Ljava/lang/String;)V

    .line 19
    sget-boolean p0, Lcom/estrongs/fs/impl/local/j;->h:Z
    :try_end_6
    .catch Ljava/lang/SecurityException; {:try_start_6 .. :try_end_6} :catch_3
    .catch Ljava/lang/Exception; {:try_start_6 .. :try_end_6} :catch_2
    .catchall {:try_start_6 .. :try_end_6} :catchall_0

    if-eqz v0, :cond_4

    .line 20
    sget-boolean v1, Lcom/estrongs/fs/impl/local/j;->h:Z

    if-eqz v1, :cond_4

    goto :goto_1

    .line 21
    :cond_4
    invoke-static {v0}, Lcom/estrongs/fs/impl/local/j;->a(Lcom/estrongs/fs/impl/local/j$e;)V

    :goto_1
    return p0

    .line 22
    :cond_5
    :try_start_7
    sput-boolean p0, Lcom/estrongs/fs/impl/local/j;->h:Z
    :try_end_7
    .catch Ljava/lang/SecurityException; {:try_start_7 .. :try_end_7} :catch_3
    .catch Ljava/lang/Exception; {:try_start_7 .. :try_end_7} :catch_2
    .catchall {:try_start_7 .. :try_end_7} :catchall_0

    if-eqz v0, :cond_6

    if-eqz p0, :cond_6

    goto :goto_2

    .line 23
    :cond_6
    invoke-static {v0}, Lcom/estrongs/fs/impl/local/j;->a(Lcom/estrongs/fs/impl/local/j$e;)V

    :goto_2
    return p0

    :catchall_0
    move-exception p0

    goto :goto_5

    .line 24
    :catch_2
    :try_start_8
    sput-boolean p0, Lcom/estrongs/fs/impl/local/j;->h:Z
    :try_end_8
    .catchall {:try_start_8 .. :try_end_8} :catchall_0

    if-eqz v0, :cond_7

    if-eqz p0, :cond_7

    goto :goto_3

    .line 25
    :cond_7
    invoke-static {v0}, Lcom/estrongs/fs/impl/local/j;->a(Lcom/estrongs/fs/impl/local/j$e;)V

    :goto_3
    return p0

    :catch_3
    move-exception v1

    .line 26
    :try_start_9
    invoke-virtual {v1}, Ljava/lang/SecurityException;->printStackTrace()V

    .line 27
    sput-boolean p0, Lcom/estrongs/fs/impl/local/j;->h:Z

    const-string v2, "NativeExecuter"

    .line 28
    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    const-string v4, "NativeExecuter SecurityException :"

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    .line 29
    invoke-virtual {v1}, Ljava/lang/SecurityException;->getMessage()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v3, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    .line 30
    invoke-static {v2, v1}, Lcom/estrongs/android/util/n;->b(Ljava/lang/String;Ljava/lang/String;)V
    :try_end_9
    .catchall {:try_start_9 .. :try_end_9} :catchall_0

    if-eqz v0, :cond_8

    .line 31
    sget-boolean v1, Lcom/estrongs/fs/impl/local/j;->h:Z

    if-eqz v1, :cond_8

    goto :goto_4

    .line 32
    :cond_8
    invoke-static {v0}, Lcom/estrongs/fs/impl/local/j;->a(Lcom/estrongs/fs/impl/local/j$e;)V

    :goto_4
    return p0

    :goto_5
    if-eqz v0, :cond_9

    .line 33
    sget-boolean v1, Lcom/estrongs/fs/impl/local/j;->h:Z

    if-eqz v1, :cond_9

    goto :goto_6

    .line 34
    :cond_9
    invoke-static {v0}, Lcom/estrongs/fs/impl/local/j;->a(Lcom/estrongs/fs/impl/local/j$e;)V

    .line 35
    :goto_6
    throw p0
.end method

.method public static e()[Ljava/lang/String;
    .locals 3

    .line 51
    sget-object v0, Lcom/estrongs/fs/impl/local/j;->b:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    if-nez v0, :cond_0

    .line 52
    invoke-static {}, Lcom/estrongs/fs/impl/local/j;->k()Z

    .line 53
    :cond_0
    sget-object v0, Lcom/estrongs/fs/impl/local/j;->b:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    if-nez v0, :cond_1

    const/4 v0, 0x0

    return-object v0

    .line 54
    :cond_1
    sget-object v0, Lcom/estrongs/fs/impl/local/j;->b:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    new-array v0, v0, [Ljava/lang/String;

    const/4 v1, 0x0

    .line 55
    :goto_0
    sget-object v2, Lcom/estrongs/fs/impl/local/j;->b:Ljava/util/List;

    invoke-interface {v2}, Ljava/util/List;->size()I

    move-result v2

    if-ge v1, v2, :cond_2

    .line 56
    sget-object v2, Lcom/estrongs/fs/impl/local/j;->b:Ljava/util/List;

    invoke-interface {v2, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lcom/estrongs/fs/impl/local/j$h;

    iget-object v2, v2, Lcom/estrongs/fs/impl/local/j$h;->b:Ljava/lang/String;

    aput-object v2, v0, v1

    add-int/lit8 v1, v1, 0x1

    goto :goto_0

    :cond_2
    return-object v0
.end method

.method public static f(Ljava/lang/String;)Ljava/io/OutputStream;
    .locals 5

    const/4 v0, 0x0

    if-nez p0, :cond_0

    return-object v0

    .line 3
    :cond_0
    invoke-static {p0}, Lcom/estrongs/android/util/h0;->W(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p0

    if-nez p0, :cond_1

    return-object v0

    :cond_1
    const/16 v1, 0xa

    .line 4
    invoke-static {}, Lcom/estrongs/fs/impl/local/j;->p()Landroid/net/LocalSocket;

    move-result-object v2

    if-nez v2, :cond_2

    return-object v0

    .line 5
    :cond_2
    :try_start_0
    invoke-virtual {v2}, Landroid/net/LocalSocket;->getOutputStream()Ljava/io/OutputStream;

    move-result-object v3
    :try_end_0
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_3
    .catchall {:try_start_0 .. :try_end_0} :catchall_1

    .line 6
    :try_start_1
    invoke-virtual {v2}, Landroid/net/LocalSocket;->getInputStream()Ljava/io/InputStream;

    move-result-object v4
    :try_end_1
    .catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_2
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    .line 7
    :try_start_2
    invoke-static {v3, v1}, Lcom/estrongs/fs/impl/local/j;->a(Ljava/io/OutputStream;I)V

    .line 8
    invoke-static {v3, p0}, Lcom/estrongs/fs/impl/local/j;->a(Ljava/io/OutputStream;Ljava/lang/String;)V

    .line 9
    invoke-static {v4}, Lcom/estrongs/fs/impl/local/j;->b(Ljava/io/InputStream;)I

    move-result p0
    :try_end_2
    .catch Ljava/io/IOException; {:try_start_2 .. :try_end_2} :catch_1
    .catchall {:try_start_2 .. :try_end_2} :catchall_2

    if-eqz p0, :cond_5

    if-eqz v4, :cond_3

    .line 10
    :try_start_3
    invoke-virtual {v4}, Ljava/io/InputStream;->close()V

    goto :goto_0

    :catch_0
    move-exception p0

    goto :goto_1

    :cond_3
    :goto_0
    if-eqz v3, :cond_4

    .line 11
    invoke-virtual {v3}, Ljava/io/OutputStream;->close()V

    .line 12
    :cond_4
    invoke-virtual {v2}, Landroid/net/LocalSocket;->close()V
    :try_end_3
    .catch Ljava/io/IOException; {:try_start_3 .. :try_end_3} :catch_0

    return-object v0

    .line 13
    :goto_1
    invoke-virtual {p0}, Ljava/io/IOException;->printStackTrace()V

    return-object v0

    .line 14
    :cond_5
    :try_start_4
    new-instance p0, Lcom/estrongs/fs/impl/local/j$g;

    invoke-direct {p0, v2, v4, v3}, Lcom/estrongs/fs/impl/local/j$g;-><init>(Landroid/net/LocalSocket;Ljava/io/InputStream;Ljava/io/OutputStream;)V
    :try_end_4
    .catch Ljava/io/IOException; {:try_start_4 .. :try_end_4} :catch_1
    .catchall {:try_start_4 .. :try_end_4} :catchall_2

    return-object p0

    :catch_1
    move-exception p0

    goto :goto_2

    :catchall_0
    move-exception p0

    move-object v4, v0

    goto :goto_5

    :catch_2
    move-exception p0

    move-object v4, v0

    goto :goto_2

    :catchall_1
    move-exception p0

    move-object v3, v0

    move-object v4, v3

    goto :goto_5

    :catch_3
    move-exception p0

    move-object v3, v0

    move-object v4, v3

    .line 15
    :goto_2
    :try_start_5
    invoke-virtual {p0}, Ljava/io/IOException;->printStackTrace()V
    :try_end_5
    .catchall {:try_start_5 .. :try_end_5} :catchall_2

    if-eqz v4, :cond_6

    .line 16
    :try_start_6
    invoke-virtual {v4}, Ljava/io/InputStream;->close()V

    goto :goto_3

    :catch_4
    move-exception p0

    goto :goto_4

    :cond_6
    :goto_3
    if-eqz v3, :cond_7

    .line 17
    invoke-virtual {v3}, Ljava/io/OutputStream;->close()V

    .line 18
    :cond_7
    invoke-virtual {v2}, Landroid/net/LocalSocket;->close()V
    :try_end_6
    .catch Ljava/io/IOException; {:try_start_6 .. :try_end_6} :catch_4

    return-object v0

    .line 19
    :goto_4
    invoke-virtual {p0}, Ljava/io/IOException;->printStackTrace()V

    return-object v0

    :catchall_2
    move-exception p0

    :goto_5
    if-eqz v4, :cond_8

    .line 20
    :try_start_7
    invoke-virtual {v4}, Ljava/io/InputStream;->close()V

    goto :goto_6

    :catch_5
    move-exception p0

    goto :goto_7

    :cond_8
    :goto_6
    if-eqz v3, :cond_9

    .line 21
    invoke-virtual {v3}, Ljava/io/OutputStream;->close()V

    .line 22
    :cond_9
    invoke-virtual {v2}, Landroid/net/LocalSocket;->close()V
    :try_end_7
    .catch Ljava/io/IOException; {:try_start_7 .. :try_end_7} :catch_5

    .line 23
    throw p0

    .line 24
    :goto_7
    invoke-virtual {p0}, Ljava/io/IOException;->printStackTrace()V

    return-object v0
.end method

.method private static f(Ljava/lang/Object;)V
    .locals 6

    .line 25
    check-cast p0, Lcom/estrongs/fs/impl/local/j$c;

    const-wide/16 v0, -0x1

    if-eqz p0, :cond_1

    .line 26
    invoke-static {p0}, Lcom/estrongs/fs/impl/local/j$c;->h(Lcom/estrongs/fs/impl/local/j$c;)Z

    move-result v2

    if-eqz v2, :cond_0

    goto :goto_0

    .line 27
    :cond_0
    :try_start_0
    invoke-static {p0}, Lcom/estrongs/fs/impl/local/j$c;->g(Lcom/estrongs/fs/impl/local/j$c;)Landroid/net/LocalSocket;

    move-result-object v2

    invoke-virtual {v2}, Landroid/net/LocalSocket;->getOutputStream()Ljava/io/OutputStream;

    move-result-object v2

    .line 28
    invoke-static {p0}, Lcom/estrongs/fs/impl/local/j$c;->g(Lcom/estrongs/fs/impl/local/j$c;)Landroid/net/LocalSocket;

    move-result-object v3

    invoke-virtual {v3}, Landroid/net/LocalSocket;->getInputStream()Ljava/io/InputStream;

    move-result-object v3

    const/16 v4, 0xc9

    .line 29
    invoke-static {v2, v4}, Lcom/estrongs/fs/impl/local/j;->a(Ljava/io/OutputStream;I)V

    .line 30
    invoke-static {p0}, Lcom/estrongs/fs/impl/local/j$c;->a(Lcom/estrongs/fs/impl/local/j$c;)J

    move-result-wide v4

    invoke-static {v2, v4, v5}, Lcom/estrongs/fs/impl/local/j;->a(Ljava/io/OutputStream;J)V

    .line 31
    invoke-static {p0}, Lcom/estrongs/fs/impl/local/j$c;->b(Lcom/estrongs/fs/impl/local/j$c;)I

    move-result v4

    invoke-static {v2, v4}, Lcom/estrongs/fs/impl/local/j;->a(Ljava/io/OutputStream;I)V

    .line 32
    invoke-static {v3}, Lcom/estrongs/fs/impl/local/j;->c(Ljava/io/InputStream;)J

    move-result-wide v2

    .line 33
    invoke-virtual {p0, v2, v3}, Lcom/estrongs/fs/impl/local/j$c;->a(J)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    return-void

    :catch_0
    move-exception v2

    .line 34
    invoke-virtual {v2}, Ljava/lang/Exception;->printStackTrace()V

    .line 35
    invoke-static {p0}, Lcom/estrongs/fs/impl/local/j;->a(Ljava/lang/Object;)V

    .line 36
    invoke-virtual {p0, v0, v1}, Lcom/estrongs/fs/impl/local/j$c;->a(J)V

    return-void

    .line 37
    :cond_1
    :goto_0
    invoke-virtual {p0, v0, v1}, Lcom/estrongs/fs/impl/local/j$c;->a(J)V

    return-void
.end method

.method public static f(Z)Z
    .locals 1

    .line 1
    invoke-static {p0}, Lcom/estrongs/fs/impl/local/j;->d(Z)Z

    move-result v0

    if-eqz v0, :cond_0

    const/4 p0, 0x1

    return p0

    .line 2
    :cond_0
    invoke-static {p0}, Lcom/estrongs/fs/impl/local/j;->c(Z)Z

    move-result p0

    return p0
.end method

.method public static f()[Ljava/lang/String;
    .locals 1

    const/4 v0, 0x0

    .line 38
    invoke-static {v0}, Lcom/estrongs/fs/impl/local/j;->a(Z)[Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method private static declared-synchronized g(Z)Landroid/net/LocalSocket;
    .locals 6

    const-class v0, Lcom/estrongs/fs/impl/local/j;

    monitor-enter v0

    .line 1
    :try_start_0
    invoke-static {}, Lcom/estrongs/fs/impl/local/j;->h()Ljava/lang/String;

    move-result-object v1

    .line 2
    new-instance v2, Landroid/net/LocalSocketAddress;

    sget-object v3, Landroid/net/LocalSocketAddress$Namespace;->ABSTRACT:Landroid/net/LocalSocketAddress$Namespace;

    invoke-direct {v2, v1, v3}, Landroid/net/LocalSocketAddress;-><init>(Ljava/lang/String;Landroid/net/LocalSocketAddress$Namespace;)V

    .line 3
    new-instance v1, Landroid/net/LocalSocket;

    invoke-direct {v1}, Landroid/net/LocalSocket;-><init>()V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    const/4 v3, 0x0

    .line 4
    :try_start_1
    invoke-virtual {v1, v2}, Landroid/net/LocalSocket;->connect(Landroid/net/LocalSocketAddress;)V
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    goto :goto_0

    :catch_0
    move-object v1, v3

    :goto_0
    if-eqz v1, :cond_1

    .line 5
    :try_start_2
    invoke-virtual {v1}, Landroid/net/LocalSocket;->getOutputStream()Ljava/io/OutputStream;

    move-result-object p0

    .line 6
    invoke-virtual {v1}, Landroid/net/LocalSocket;->getInputStream()Ljava/io/InputStream;

    move-result-object v2

    const/16 v4, 0x50

    .line 7
    invoke-static {p0, v4}, Lcom/estrongs/fs/impl/local/j;->a(Ljava/io/OutputStream;I)V
    :try_end_2
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_3
    .catchall {:try_start_2 .. :try_end_2} :catchall_0

    .line 8
    :try_start_3
    invoke-static {v2}, Lcom/estrongs/fs/impl/local/j;->b(Ljava/io/InputStream;)I

    move-result v4
    :try_end_3
    .catch Ljava/io/IOException; {:try_start_3 .. :try_end_3} :catch_1
    .catch Ljava/lang/Exception; {:try_start_3 .. :try_end_3} :catch_3
    .catchall {:try_start_3 .. :try_end_3} :catchall_0

    goto :goto_1

    :catch_1
    const/16 v4, 0x29

    :goto_1
    const/16 v5, 0x2b

    if-eq v4, v5, :cond_0

    const/16 v2, 0x64

    .line 9
    :try_start_4
    invoke-static {p0, v2}, Lcom/estrongs/fs/impl/local/j;->a(Ljava/io/OutputStream;I)V

    .line 10
    invoke-virtual {v1}, Landroid/net/LocalSocket;->close()V
    :try_end_4
    .catch Ljava/lang/Exception; {:try_start_4 .. :try_end_4} :catch_2
    .catchall {:try_start_4 .. :try_end_4} :catchall_0

    .line 11
    :catch_2
    :try_start_5
    invoke-static {}, Lcom/estrongs/android/pop/FexApplication;->n()Lcom/estrongs/android/pop/FexApplication;

    move-result-object p0

    invoke-static {p0}, Lcom/estrongs/fs/impl/local/j;->a(Landroid/content/Context;)Z
    :try_end_5
    .catch Ljava/lang/Exception; {:try_start_5 .. :try_end_5} :catch_3
    .catchall {:try_start_5 .. :try_end_5} :catchall_0

    .line 12
    monitor-exit v0

    return-object v3

    :cond_0
    const/16 v4, 0xd0

    .line 13
    :try_start_6
    invoke-static {p0, v4}, Lcom/estrongs/fs/impl/local/j;->a(Ljava/io/OutputStream;I)V

    .line 14
    invoke-virtual {v1}, Ljava/lang/Object;->hashCode()I

    move-result v4

    invoke-static {v4}, Ljava/lang/Math;->abs(I)I

    move-result v4

    .line 15
    invoke-static {p0, v4}, Lcom/estrongs/fs/impl/local/j;->a(Ljava/io/OutputStream;I)V

    .line 16
    invoke-static {v2}, Lcom/estrongs/fs/impl/local/j;->b(Ljava/io/InputStream;)I
    :try_end_6
    .catch Ljava/lang/Exception; {:try_start_6 .. :try_end_6} :catch_3
    .catchall {:try_start_6 .. :try_end_6} :catchall_0

    .line 17
    monitor-exit v0

    return-object v1

    .line 18
    :catch_3
    monitor-exit v0

    return-object v3

    :cond_1
    if-nez p0, :cond_2

    .line 19
    monitor-exit v0

    return-object v3

    .line 20
    :cond_2
    :try_start_7
    invoke-static {}, Lcom/estrongs/fs/impl/local/j;->m()Z

    move-result p0

    if-eqz p0, :cond_3

    .line 21
    invoke-static {}, Lcom/estrongs/android/pop/FexApplication;->n()Lcom/estrongs/android/pop/FexApplication;

    move-result-object p0

    invoke-static {p0}, Lcom/estrongs/fs/impl/local/j;->a(Landroid/content/Context;)Z

    move-result p0
    :try_end_7
    .catch Ljava/lang/Exception; {:try_start_7 .. :try_end_7} :catch_4
    .catchall {:try_start_7 .. :try_end_7} :catchall_0

    if-nez p0, :cond_3

    .line 22
    monitor-exit v0

    return-object v3

    :cond_3
    const/4 p0, 0x1

    .line 23
    :try_start_8
    invoke-static {p0}, Lcom/estrongs/fs/impl/local/j;->e(Z)Z

    move-result p0

    if-eqz p0, :cond_4

    const/4 p0, 0x0

    .line 24
    invoke-static {p0}, Lcom/estrongs/fs/impl/local/j;->g(Z)Landroid/net/LocalSocket;

    move-result-object p0
    :try_end_8
    .catch Ljava/lang/Exception; {:try_start_8 .. :try_end_8} :catch_4
    .catchall {:try_start_8 .. :try_end_8} :catchall_0

    monitor-exit v0

    return-object p0

    .line 25
    :cond_4
    monitor-exit v0

    return-object v3

    .line 26
    :catch_4
    monitor-exit v0

    return-object v3

    :catchall_0
    move-exception p0

    monitor-exit v0

    throw p0
.end method

.method public static g(Ljava/lang/String;)Lcom/estrongs/fs/impl/local/j$d;
    .locals 2

    .line 45
    new-instance v0, Lcom/estrongs/fs/impl/local/j$d;

    const/4 v1, 0x0

    invoke-direct {v0, p0, v1}, Lcom/estrongs/fs/impl/local/j$d;-><init>(Ljava/lang/String;Lcom/estrongs/fs/impl/local/i;)V

    if-nez p0, :cond_0

    return-object v0

    .line 46
    :cond_0
    invoke-static {v0}, Lcom/estrongs/fs/impl/local/j;->c(Ljava/lang/Object;)V

    return-object v0
.end method

.method private static g()Ljava/lang/String;
    .locals 6

    .line 47
    invoke-static {}, Lcom/estrongs/fs/impl/local/j;->p()Landroid/net/LocalSocket;

    move-result-object v0

    const/4 v1, 0x0

    if-nez v0, :cond_0

    return-object v1

    .line 48
    :cond_0
    :try_start_0
    invoke-virtual {v0}, Landroid/net/LocalSocket;->getInputStream()Ljava/io/InputStream;

    move-result-object v2
    :try_end_0
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_5
    .catchall {:try_start_0 .. :try_end_0} :catchall_2

    .line 49
    :try_start_1
    invoke-virtual {v0}, Landroid/net/LocalSocket;->getOutputStream()Ljava/io/OutputStream;

    move-result-object v3
    :try_end_1
    .catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_3
    .catchall {:try_start_1 .. :try_end_1} :catchall_1

    const/4 v4, 0x5

    .line 50
    :try_start_2
    invoke-static {v3, v4}, Lcom/estrongs/fs/impl/local/j;->a(Ljava/io/OutputStream;I)V

    .line 51
    invoke-static {v2}, Lcom/estrongs/fs/impl/local/j;->b(Ljava/io/InputStream;)I

    move-result v4
    :try_end_2
    .catch Ljava/io/IOException; {:try_start_2 .. :try_end_2} :catch_6
    .catchall {:try_start_2 .. :try_end_2} :catchall_0

    if-eqz v4, :cond_3

    if-eqz v2, :cond_1

    .line 52
    :try_start_3
    invoke-virtual {v2}, Ljava/io/InputStream;->close()V

    :cond_1
    if-eqz v3, :cond_2

    .line 53
    invoke-virtual {v3}, Ljava/io/OutputStream;->close()V

    .line 54
    :cond_2
    invoke-virtual {v0}, Landroid/net/LocalSocket;->close()V
    :try_end_3
    .catch Ljava/io/IOException; {:try_start_3 .. :try_end_3} :catch_0

    :catch_0
    return-object v1

    .line 55
    :cond_3
    :try_start_4
    invoke-static {v2}, Lcom/estrongs/fs/impl/local/j;->d(Ljava/io/InputStream;)Ljava/lang/String;

    move-result-object v4

    if-eqz v4, :cond_6

    .line 56
    invoke-virtual {v4}, Ljava/lang/String;->length()I

    move-result v5
    :try_end_4
    .catch Ljava/io/IOException; {:try_start_4 .. :try_end_4} :catch_6
    .catchall {:try_start_4 .. :try_end_4} :catchall_0

    if-nez v5, :cond_6

    if-eqz v2, :cond_4

    .line 57
    :try_start_5
    invoke-virtual {v2}, Ljava/io/InputStream;->close()V

    :cond_4
    if-eqz v3, :cond_5

    .line 58
    invoke-virtual {v3}, Ljava/io/OutputStream;->close()V

    .line 59
    :cond_5
    invoke-virtual {v0}, Landroid/net/LocalSocket;->close()V
    :try_end_5
    .catch Ljava/io/IOException; {:try_start_5 .. :try_end_5} :catch_1

    :catch_1
    return-object v1

    :cond_6
    if-eqz v2, :cond_7

    .line 60
    :try_start_6
    invoke-virtual {v2}, Ljava/io/InputStream;->close()V

    :cond_7
    if-eqz v3, :cond_8

    .line 61
    invoke-virtual {v3}, Ljava/io/OutputStream;->close()V

    .line 62
    :cond_8
    invoke-virtual {v0}, Landroid/net/LocalSocket;->close()V
    :try_end_6
    .catch Ljava/io/IOException; {:try_start_6 .. :try_end_6} :catch_2

    return-object v4

    :catch_2
    return-object v1

    :catchall_0
    move-exception v4

    goto :goto_0

    :catchall_1
    move-exception v4

    move-object v3, v1

    goto :goto_0

    :catch_3
    move-object v3, v1

    goto :goto_1

    :catchall_2
    move-exception v4

    move-object v2, v1

    move-object v3, v2

    :goto_0
    if-eqz v2, :cond_9

    .line 63
    :try_start_7
    invoke-virtual {v2}, Ljava/io/InputStream;->close()V

    :cond_9
    if-eqz v3, :cond_a

    .line 64
    invoke-virtual {v3}, Ljava/io/OutputStream;->close()V

    .line 65
    :cond_a
    invoke-virtual {v0}, Landroid/net/LocalSocket;->close()V
    :try_end_7
    .catch Ljava/io/IOException; {:try_start_7 .. :try_end_7} :catch_4

    .line 66
    throw v4

    :catch_4
    return-object v1

    :catch_5
    move-object v2, v1

    move-object v3, v2

    :catch_6
    :goto_1
    if-eqz v2, :cond_b

    .line 67
    :try_start_8
    invoke-virtual {v2}, Ljava/io/InputStream;->close()V

    :cond_b
    if-eqz v3, :cond_c

    .line 68
    invoke-virtual {v3}, Ljava/io/OutputStream;->close()V

    .line 69
    :cond_c
    invoke-virtual {v0}, Landroid/net/LocalSocket;->close()V
    :try_end_8
    .catch Ljava/io/IOException; {:try_start_8 .. :try_end_8} :catch_7

    :catch_7
    return-object v1
.end method

.method private static g(Ljava/lang/Object;)V
    .locals 5

    .line 27
    check-cast p0, Lcom/estrongs/fs/impl/local/j$d;

    .line 28
    invoke-static {}, Lcom/estrongs/fs/impl/local/j;->p()Landroid/net/LocalSocket;

    move-result-object v0

    const/4 v1, 0x0

    if-nez v0, :cond_0

    .line 29
    invoke-static {p0, v1}, Lcom/estrongs/fs/impl/local/j$d;->a(Lcom/estrongs/fs/impl/local/j$d;Z)V

    return-void

    :cond_0
    const/4 v2, 0x0

    .line 30
    :try_start_0
    invoke-virtual {v0}, Landroid/net/LocalSocket;->getOutputStream()Ljava/io/OutputStream;

    move-result-object v3
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_1

    .line 31
    :try_start_1
    invoke-virtual {v0}, Landroid/net/LocalSocket;->getInputStream()Ljava/io/InputStream;

    move-result-object v2

    const/16 v4, 0xcb

    .line 32
    invoke-static {v3, v4}, Lcom/estrongs/fs/impl/local/j;->a(Ljava/io/OutputStream;I)V

    .line 33
    invoke-static {p0}, Lcom/estrongs/fs/impl/local/j$d;->a(Lcom/estrongs/fs/impl/local/j$d;)Ljava/lang/String;

    move-result-object v4

    invoke-static {v3, v4}, Lcom/estrongs/fs/impl/local/j;->a(Ljava/io/OutputStream;Ljava/lang/String;)V

    .line 34
    iget v4, p0, Lcom/estrongs/fs/impl/local/j$d;->b:I

    invoke-static {v3, v4}, Lcom/estrongs/fs/impl/local/j;->a(Ljava/io/OutputStream;I)V

    .line 35
    iget v4, p0, Lcom/estrongs/fs/impl/local/j$d;->c:I

    invoke-static {v3, v4}, Lcom/estrongs/fs/impl/local/j;->a(Ljava/io/OutputStream;I)V

    .line 36
    iget v4, p0, Lcom/estrongs/fs/impl/local/j$d;->d:I

    invoke-static {v3, v4}, Lcom/estrongs/fs/impl/local/j;->a(Ljava/io/OutputStream;I)V

    .line 37
    invoke-static {v2}, Lcom/estrongs/fs/impl/local/j;->b(Ljava/io/InputStream;)I

    move-result v4

    if-eqz v4, :cond_1

    .line 38
    invoke-static {p0, v1}, Lcom/estrongs/fs/impl/local/j$d;->a(Lcom/estrongs/fs/impl/local/j$d;Z)V

    return-void

    :cond_1
    const/4 v4, 0x1

    .line 39
    invoke-static {p0, v4}, Lcom/estrongs/fs/impl/local/j$d;->a(Lcom/estrongs/fs/impl/local/j$d;Z)V
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0

    return-void

    :catch_0
    move-exception v4

    goto :goto_0

    :catch_1
    move-exception v4

    move-object v3, v2

    .line 40
    :goto_0
    invoke-virtual {v4}, Ljava/lang/Exception;->printStackTrace()V

    if-eqz v2, :cond_2

    .line 41
    :try_start_2
    invoke-virtual {v2}, Ljava/io/InputStream;->close()V

    :cond_2
    if-eqz v3, :cond_3

    .line 42
    invoke-virtual {v3}, Ljava/io/OutputStream;->close()V

    .line 43
    :cond_3
    invoke-virtual {v0}, Landroid/net/LocalSocket;->close()V
    :try_end_2
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_2

    .line 44
    :catch_2
    invoke-static {p0, v1}, Lcom/estrongs/fs/impl/local/j$d;->a(Lcom/estrongs/fs/impl/local/j$d;Z)V

    return-void
.end method

.method public static h(Ljava/lang/String;)I
    .locals 2

    .line 2
    sget-object v0, Lcom/estrongs/fs/impl/local/j;->b:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    if-nez v0, :cond_0

    .line 3
    invoke-static {}, Lcom/estrongs/fs/impl/local/j;->k()Z

    :cond_0
    const/4 v0, 0x0

    .line 4
    :goto_0
    sget-object v1, Lcom/estrongs/fs/impl/local/j;->b:Ljava/util/List;

    invoke-interface {v1}, Ljava/util/List;->size()I

    move-result v1

    if-ge v0, v1, :cond_2

    .line 5
    sget-object v1, Lcom/estrongs/fs/impl/local/j;->b:Ljava/util/List;

    invoke-interface {v1, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/estrongs/fs/impl/local/j$h;

    iget-object v1, v1, Lcom/estrongs/fs/impl/local/j$h;->b:Ljava/lang/String;

    invoke-virtual {v1, p0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_1

    .line 6
    sget-object p0, Lcom/estrongs/fs/impl/local/j;->b:Ljava/util/List;

    invoke-interface {p0, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object p0

    check-cast p0, Lcom/estrongs/fs/impl/local/j$h;

    iget p0, p0, Lcom/estrongs/fs/impl/local/j$h;->a:I

    return p0

    :cond_1
    add-int/lit8 v0, v0, 0x1

    goto :goto_0

    :cond_2
    const/4 p0, -0x1

    return p0
.end method

.method private static h()Ljava/lang/String;
    .locals 2

    .line 1
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    sget-object v1, Lcom/estrongs/fs/impl/local/j;->c:Ljava/lang/String;

    invoke-static {v1}, Lcom/estrongs/android/util/h0;->M(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Lcom/estrongs/android/util/h0;->M(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v1, "files/comm/su_port"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public static i(Ljava/lang/String;)I
    .locals 2

    .line 2
    sget-object v0, Lcom/estrongs/fs/impl/local/j;->a:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    if-nez v0, :cond_0

    .line 3
    invoke-static {}, Lcom/estrongs/fs/impl/local/j;->k()Z

    :cond_0
    const/4 v0, 0x0

    .line 4
    :goto_0
    sget-object v1, Lcom/estrongs/fs/impl/local/j;->a:Ljava/util/List;

    invoke-interface {v1}, Ljava/util/List;->size()I

    move-result v1

    if-ge v0, v1, :cond_2

    .line 5
    sget-object v1, Lcom/estrongs/fs/impl/local/j;->a:Ljava/util/List;

    invoke-interface {v1, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/estrongs/fs/impl/local/j$h;

    iget-object v1, v1, Lcom/estrongs/fs/impl/local/j$h;->b:Ljava/lang/String;

    invoke-virtual {v1, p0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_1

    .line 6
    sget-object p0, Lcom/estrongs/fs/impl/local/j;->a:Ljava/util/List;

    invoke-interface {p0, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object p0

    check-cast p0, Lcom/estrongs/fs/impl/local/j$h;

    iget p0, p0, Lcom/estrongs/fs/impl/local/j$h;->a:I

    return p0

    :cond_1
    add-int/lit8 v0, v0, 0x1

    goto :goto_0

    :cond_2
    const/4 p0, -0x1

    return p0
.end method

.method public static i()Lcom/estrongs/fs/impl/local/j$e;
    .locals 1

    const/4 v0, 0x0

    .line 1
    invoke-static {v0}, Lcom/estrongs/fs/impl/local/j;->b(Z)Lcom/estrongs/fs/impl/local/j$e;

    move-result-object v0

    return-object v0
.end method

.method public static j(Ljava/lang/String;)Z
    .locals 3

    const/4 v0, 0x0

    .line 1
    invoke-virtual {p0, v0}, Ljava/lang/String;->charAt(I)C

    move-result v1

    const/16 v2, 0x24

    if-ne v1, v2, :cond_0

    invoke-virtual {p0}, Ljava/lang/String;->length()I

    move-result v1

    const/16 v2, 0x16

    if-ne v1, v2, :cond_0

    const-string v1, "$-----ESTOOL-END-----$"

    invoke-virtual {p0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p0

    if-eqz p0, :cond_0

    const/4 p0, 0x1

    return p0

    :cond_0
    return v0
.end method

.method public static j()[Ljava/lang/String;
    .locals 3

    .line 2
    sget-object v0, Lcom/estrongs/fs/impl/local/j;->a:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    if-nez v0, :cond_0

    .line 3
    invoke-static {}, Lcom/estrongs/fs/impl/local/j;->k()Z

    .line 4
    :cond_0
    sget-object v0, Lcom/estrongs/fs/impl/local/j;->a:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    if-nez v0, :cond_1

    const/4 v0, 0x0

    return-object v0

    .line 5
    :cond_1
    sget-object v0, Lcom/estrongs/fs/impl/local/j;->a:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    new-array v0, v0, [Ljava/lang/String;

    const/4 v1, 0x0

    .line 6
    :goto_0
    sget-object v2, Lcom/estrongs/fs/impl/local/j;->a:Ljava/util/List;

    invoke-interface {v2}, Ljava/util/List;->size()I

    move-result v2

    if-ge v1, v2, :cond_2

    .line 7
    sget-object v2, Lcom/estrongs/fs/impl/local/j;->a:Ljava/util/List;

    invoke-interface {v2, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lcom/estrongs/fs/impl/local/j$h;

    iget-object v2, v2, Lcom/estrongs/fs/impl/local/j$h;->b:Ljava/lang/String;

    aput-object v2, v0, v1

    add-int/lit8 v1, v1, 0x1

    goto :goto_0

    :cond_2
    return-object v0
.end method

.method public static k(Ljava/lang/String;)Ljava/lang/Object;
    .locals 2

    const/4 v0, 0x0

    if-nez p0, :cond_0

    return-object v0

    .line 41
    :cond_0
    new-instance v1, Lcom/estrongs/fs/impl/local/j$c;

    invoke-direct {v1, p0}, Lcom/estrongs/fs/impl/local/j$c;-><init>(Ljava/lang/String;)V

    .line 42
    invoke-static {v1}, Lcom/estrongs/fs/impl/local/j;->d(Ljava/lang/Object;)V

    .line 43
    invoke-static {v1}, Lcom/estrongs/fs/impl/local/j$c;->c(Lcom/estrongs/fs/impl/local/j$c;)Z

    move-result p0

    if-nez p0, :cond_1

    return-object v0

    :cond_1
    return-object v1
.end method

.method private static k()Z
    .locals 8

    .line 1
    invoke-static {}, Lcom/estrongs/fs/impl/local/j;->p()Landroid/net/LocalSocket;

    move-result-object v0

    const/4 v1, 0x0

    if-nez v0, :cond_0

    return v1

    :cond_0
    const-string v2, ""

    .line 2
    :try_start_0
    invoke-virtual {v0}, Landroid/net/LocalSocket;->getOutputStream()Ljava/io/OutputStream;

    move-result-object v3

    .line 3
    invoke-virtual {v0}, Landroid/net/LocalSocket;->getInputStream()Ljava/io/InputStream;

    move-result-object v0

    const/16 v4, 0xcc

    .line 4
    invoke-static {v3, v4}, Lcom/estrongs/fs/impl/local/j;->a(Ljava/io/OutputStream;I)V

    const/16 v4, 0x1388

    .line 5
    invoke-static {v3, v4}, Lcom/estrongs/fs/impl/local/j;->a(Ljava/io/OutputStream;I)V

    const/16 v3, 0x400

    new-array v3, v3, [B

    .line 6
    :goto_0
    invoke-virtual {v0, v3}, Ljava/io/InputStream;->read([B)I

    move-result v4

    if-gtz v4, :cond_1

    goto :goto_1

    .line 7
    :cond_1
    new-instance v5, Ljava/lang/String;

    invoke-direct {v5, v3, v1, v4}, Ljava/lang/String;-><init>([BII)V

    .line 8
    new-instance v4, Ljava/lang/StringBuilder;

    invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v4, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception v0

    .line 9
    invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V

    .line 10
    :goto_1
    sget-object v0, Lcom/estrongs/fs/impl/local/j;->a:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->clear()V

    .line 11
    sget-object v0, Lcom/estrongs/fs/impl/local/j;->b:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->clear()V

    const/4 v0, 0x2

    const/4 v3, 0x1

    :try_start_1
    const-string v4, "\n"

    .line 12
    invoke-virtual {v2, v4}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;

    move-result-object v2

    const/4 v4, 0x0

    .line 13
    :goto_2
    array-length v5, v2

    if-ge v4, v5, :cond_3

    .line 14
    aget-object v5, v2, v4

    const-string v6, ":"

    invoke-virtual {v5, v6}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;

    move-result-object v5

    .line 15
    array-length v6, v5

    const/4 v7, 0x4

    if-eq v6, v7, :cond_2

    goto :goto_3

    .line 16
    :cond_2
    new-instance v6, Lcom/estrongs/fs/impl/local/j$h;

    const/4 v7, 0x0

    invoke-direct {v6, v7}, Lcom/estrongs/fs/impl/local/j$h;-><init>(Lcom/estrongs/fs/impl/local/i;)V

    .line 17
    aget-object v7, v5, v1

    invoke-virtual {v7}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v7

    iput-object v7, v6, Lcom/estrongs/fs/impl/local/j$h;->b:Ljava/lang/String;

    .line 18
    aget-object v7, v5, v3

    invoke-virtual {v7}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v7

    invoke-static {v7}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

    move-result v7

    iput v7, v6, Lcom/estrongs/fs/impl/local/j$h;->a:I

    .line 19
    sget-object v7, Lcom/estrongs/fs/impl/local/j;->b:Ljava/util/List;

    invoke-interface {v7, v6}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 20
    aget-object v7, v5, v0

    invoke-virtual {v7}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v7

    iput-object v7, v6, Lcom/estrongs/fs/impl/local/j$h;->b:Ljava/lang/String;

    const/4 v7, 0x3

    .line 21
    aget-object v5, v5, v7

    invoke-virtual {v5}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v5

    invoke-static {v5}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

    move-result v5

    iput v5, v6, Lcom/estrongs/fs/impl/local/j$h;->a:I

    .line 22
    sget-object v5, Lcom/estrongs/fs/impl/local/j;->a:Ljava/util/List;

    invoke-interface {v5, v6}, Ljava/util/List;->add(Ljava/lang/Object;)Z
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_1

    :goto_3
    add-int/lit8 v4, v4, 0x1

    goto :goto_2

    :catch_1
    nop

    .line 23
    :cond_3
    sget-object v2, Lcom/estrongs/fs/impl/local/j;->a:Ljava/util/List;

    invoke-interface {v2}, Ljava/util/List;->size()I

    move-result v2

    if-ge v2, v0, :cond_4

    return v1

    .line 24
    :cond_4
    new-instance v0, Lcom/estrongs/fs/impl/local/j$a;

    invoke-direct {v0}, Lcom/estrongs/fs/impl/local/j$a;-><init>()V

    .line 25
    sget-object v2, Lcom/estrongs/fs/impl/local/j;->a:Ljava/util/List;

    invoke-interface {v2}, Ljava/util/List;->toArray()[Ljava/lang/Object;

    move-result-object v2

    .line 26
    invoke-static {v2, v0}, Ljava/util/Arrays;->sort([Ljava/lang/Object;Ljava/util/Comparator;)V

    .line 27
    sget-object v4, Lcom/estrongs/fs/impl/local/j;->a:Ljava/util/List;

    invoke-interface {v4}, Ljava/util/List;->clear()V

    .line 28
    sget-object v4, Lcom/estrongs/fs/impl/local/j;->a:Ljava/util/List;

    aget-object v5, v2, v1

    check-cast v5, Lcom/estrongs/fs/impl/local/j$h;

    invoke-interface {v4, v5}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    const/4 v4, 0x1

    .line 29
    :goto_4
    array-length v5, v2

    if-ge v4, v5, :cond_6

    .line 30
    sget-object v5, Lcom/estrongs/fs/impl/local/j;->a:Ljava/util/List;

    invoke-interface {v5}, Ljava/util/List;->size()I

    move-result v5

    .line 31
    sget-object v6, Lcom/estrongs/fs/impl/local/j;->a:Ljava/util/List;

    invoke-interface {v6}, Ljava/util/List;->size()I

    move-result v6

    if-lt v6, v3, :cond_5

    aget-object v6, v2, v4

    check-cast v6, Lcom/estrongs/fs/impl/local/j$h;

    iget v6, v6, Lcom/estrongs/fs/impl/local/j$h;->a:I

    sget-object v7, Lcom/estrongs/fs/impl/local/j;->a:Ljava/util/List;

    sub-int/2addr v5, v3

    invoke-interface {v7, v5}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v5

    check-cast v5, Lcom/estrongs/fs/impl/local/j$h;

    iget v5, v5, Lcom/estrongs/fs/impl/local/j$h;->a:I

    if-eq v6, v5, :cond_5

    .line 32
    sget-object v5, Lcom/estrongs/fs/impl/local/j;->a:Ljava/util/List;

    aget-object v6, v2, v4

    check-cast v6, Lcom/estrongs/fs/impl/local/j$h;

    invoke-interface {v5, v6}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    :cond_5
    add-int/lit8 v4, v4, 0x1

    goto :goto_4

    .line 33
    :cond_6
    sget-object v2, Lcom/estrongs/fs/impl/local/j;->b:Ljava/util/List;

    invoke-interface {v2}, Ljava/util/List;->toArray()[Ljava/lang/Object;

    move-result-object v2

    .line 34
    invoke-static {v2, v0}, Ljava/util/Arrays;->sort([Ljava/lang/Object;Ljava/util/Comparator;)V

    .line 35
    sget-object v0, Lcom/estrongs/fs/impl/local/j;->b:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->clear()V

    .line 36
    sget-object v0, Lcom/estrongs/fs/impl/local/j;->b:Ljava/util/List;

    aget-object v1, v2, v1

    check-cast v1, Lcom/estrongs/fs/impl/local/j$h;

    invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    const/4 v0, 0x1

    .line 37
    :goto_5
    array-length v1, v2

    if-ge v0, v1, :cond_8

    .line 38
    sget-object v1, Lcom/estrongs/fs/impl/local/j;->b:Ljava/util/List;

    invoke-interface {v1}, Ljava/util/List;->size()I

    move-result v1

    if-lt v1, v3, :cond_7

    .line 39
    aget-object v4, v2, v0

    check-cast v4, Lcom/estrongs/fs/impl/local/j$h;

    iget v4, v4, Lcom/estrongs/fs/impl/local/j$h;->a:I

    sget-object v5, Lcom/estrongs/fs/impl/local/j;->b:Ljava/util/List;

    add-int/lit8 v1, v1, -0x1

    invoke-interface {v5, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/estrongs/fs/impl/local/j$h;

    iget v1, v1, Lcom/estrongs/fs/impl/local/j$h;->a:I

    if-eq v4, v1, :cond_7

    .line 40
    sget-object v1, Lcom/estrongs/fs/impl/local/j;->b:Ljava/util/List;

    aget-object v4, v2, v0

    check-cast v4, Lcom/estrongs/fs/impl/local/j$h;

    invoke-interface {v1, v4}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    :cond_7
    add-int/lit8 v0, v0, 0x1

    goto :goto_5

    :cond_8
    return v3
.end method

.method public static l(Ljava/lang/String;)V
    .locals 2

    .line 1
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v0, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v1, "/"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v1, "libestool2.so"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    sput-object v0, Lcom/estrongs/fs/impl/local/j;->c:Ljava/lang/String;

    .line 2
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v0, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v1, "/sdcardhelper"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    sput-object v0, Lcom/estrongs/fs/impl/local/j;->e:Ljava/lang/String;

    .line 3
    sput-object p0, Lcom/estrongs/fs/impl/local/j;->d:Ljava/lang/String;

    return-void
.end method

.method public static l()Z
    .locals 1

    const/4 v0, 0x0

    .line 4
    invoke-static {v0}, Lcom/estrongs/fs/impl/local/j;->f(Z)Z

    move-result v0

    return v0
.end method

.method public static m()Z
    .locals 10

    .line 1
    sget-boolean v0, Lcom/estrongs/fs/impl/local/j;->j:Z

    const/4 v1, 0x0

    const/4 v2, 0x1

    if-eqz v0, :cond_0

    .line 2
    sput-boolean v1, Lcom/estrongs/fs/impl/local/j;->j:Z

    return v2

    .line 3
    :cond_0
    new-instance v0, Ljava/io/File;

    sget-object v3, Lcom/estrongs/fs/impl/local/j;->c:Ljava/lang/String;

    invoke-direct {v0, v3}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 4
    invoke-virtual {v0}, Ljava/io/File;->exists()Z

    move-result v3

    if-nez v3, :cond_1

    return v2

    .line 5
    :cond_1
    invoke-static {}, Lcom/estrongs/fs/impl/local/j;->c()I

    move-result v3

    .line 6
    invoke-virtual {v0}, Ljava/io/File;->length()J

    move-result-wide v4

    const-wide/16 v6, 0x0

    const/4 v0, 0x0

    .line 7
    :try_start_0
    invoke-static {}, Lcom/estrongs/android/pop/FexApplication;->n()Lcom/estrongs/android/pop/FexApplication;

    move-result-object v8

    invoke-virtual {v8}, Lcom/estrongs/android/pop/FexApplication;->getResources()Landroid/content/res/Resources;

    move-result-object v8

    .line 8
    invoke-virtual {v8, v3}, Landroid/content/res/Resources;->openRawResource(I)Ljava/io/InputStream;

    move-result-object v0

    .line 9
    invoke-virtual {v0}, Ljava/io/InputStream;->available()I

    move-result v6

    int-to-long v6, v6

    cmp-long v9, v4, v6

    if-nez v9, :cond_5

    .line 10
    invoke-static {}, Lcom/estrongs/android/pop/l;->L1()Lcom/estrongs/android/pop/l;

    move-result-object v9

    .line 11
    invoke-virtual {v8, v3}, Landroid/content/res/Resources;->getResourceName(I)Ljava/lang/String;

    move-result-object v3

    .line 12
    invoke-virtual {v9}, Lcom/estrongs/android/pop/l;->V()Ljava/lang/String;

    move-result-object v8

    if-eqz v8, :cond_2

    .line 13
    invoke-virtual {v8, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_3
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    if-nez v3, :cond_3

    :cond_2
    const/4 v1, 0x1

    :cond_3
    if-eqz v0, :cond_4

    .line 14
    :try_start_1
    invoke-virtual {v0}, Ljava/io/InputStream;->close()V
    :try_end_1
    .catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_0

    :catch_0
    :cond_4
    return v1

    :cond_5
    if-eqz v0, :cond_7

    :goto_0
    :try_start_2
    invoke-virtual {v0}, Ljava/io/InputStream;->close()V
    :try_end_2
    .catch Ljava/io/IOException; {:try_start_2 .. :try_end_2} :catch_1

    goto :goto_1

    :catch_1
    nop

    goto :goto_1

    :catchall_0
    move-exception v1

    if-eqz v0, :cond_6

    :try_start_3
    invoke-virtual {v0}, Ljava/io/InputStream;->close()V
    :try_end_3
    .catch Ljava/io/IOException; {:try_start_3 .. :try_end_3} :catch_2

    .line 15
    :catch_2
    :cond_6
    throw v1

    :catch_3
    nop

    if-eqz v0, :cond_7

    goto :goto_0

    :cond_7
    :goto_1
    cmp-long v0, v4, v6

    if-eqz v0, :cond_8

    const/4 v1, 0x1

    :cond_8
    return v1
.end method

.method public static m(Ljava/lang/String;)Z
    .locals 10

    .line 16
    sget-object v0, Lcom/estrongs/fs/impl/local/j;->k:Ljava/lang/Object;

    monitor-enter v0

    const/4 v1, 0x0

    if-nez p0, :cond_0

    .line 17
    :try_start_0
    monitor-exit v0

    return v1

    .line 18
    :cond_0
    invoke-static {}, Lcom/estrongs/fs/impl/local/j;->p()Landroid/net/LocalSocket;

    move-result-object v2

    if-nez v2, :cond_1

    .line 19
    monitor-exit v0
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_2

    return v1

    :cond_1
    const/4 v3, 0x0

    .line 20
    :try_start_1
    invoke-virtual {v2}, Landroid/net/LocalSocket;->getInputStream()Ljava/io/InputStream;

    move-result-object v4
    :try_end_1
    .catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_5
    .catchall {:try_start_1 .. :try_end_1} :catchall_1

    .line 21
    :try_start_2
    invoke-virtual {v2}, Landroid/net/LocalSocket;->getOutputStream()Ljava/io/OutputStream;

    move-result-object v3

    const/16 v5, 0x11

    .line 22
    invoke-static {v3, v5}, Lcom/estrongs/fs/impl/local/j;->a(Ljava/io/OutputStream;I)V

    .line 23
    invoke-static {v3, p0}, Lcom/estrongs/fs/impl/local/j;->a(Ljava/io/OutputStream;Ljava/lang/String;)V

    .line 24
    invoke-static {v4}, Lcom/estrongs/fs/impl/local/j;->b(Ljava/io/InputStream;)I

    move-result v6

    const/4 v7, 0x1

    if-eqz v6, :cond_9

    .line 25
    new-instance v6, Ljava/lang/StringBuilder;

    invoke-direct {v6}, Ljava/lang/StringBuilder;-><init>()V

    const-string v8, "export LD_LIBRARY_PATH=/vendor/lib:/system/lib:$LD_LIBRARY_PATH;pm uninstall "

    invoke-virtual {v6, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v6, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p0

    .line 26
    sget v6, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v8, 0x15

    if-lt v6, v8, :cond_2

    .line 27
    invoke-static {v7, v7}, Lcom/estrongs/fs/impl/local/j;->a(ZZ)Lcom/estrongs/fs/impl/local/j$e;

    move-result-object v6

    goto :goto_0

    .line 28
    :cond_2
    invoke-static {v7}, Lcom/estrongs/fs/impl/local/j;->b(Z)Lcom/estrongs/fs/impl/local/j$e;

    move-result-object v6
    :try_end_2
    .catch Ljava/io/IOException; {:try_start_2 .. :try_end_2} :catch_3
    .catchall {:try_start_2 .. :try_end_2} :catchall_0

    :goto_0
    if-nez v6, :cond_5

    if-eqz v4, :cond_3

    .line 29
    :try_start_3
    invoke-virtual {v4}, Ljava/io/InputStream;->close()V

    :cond_3
    if-eqz v3, :cond_4

    .line 30
    invoke-virtual {v3}, Ljava/io/OutputStream;->close()V

    .line 31
    :cond_4
    invoke-virtual {v2}, Landroid/net/LocalSocket;->close()V
    :try_end_3
    .catch Ljava/io/IOException; {:try_start_3 .. :try_end_3} :catch_0
    .catchall {:try_start_3 .. :try_end_3} :catchall_2

    .line 32
    :try_start_4
    monitor-exit v0

    return v1

    :catch_0
    monitor-exit v0
    :try_end_4
    .catchall {:try_start_4 .. :try_end_4} :catchall_2

    return v1

    .line 33
    :cond_5
    :try_start_5
    new-instance v7, Lcom/estrongs/fs/impl/local/j$b;

    invoke-direct {v7}, Lcom/estrongs/fs/impl/local/j$b;-><init>()V

    .line 34
    iput-object v6, v7, Lcom/estrongs/fs/impl/local/j$b;->a:Ljava/lang/Object;

    .line 35
    iput-object p0, v7, Lcom/estrongs/fs/impl/local/j$b;->b:Ljava/lang/Object;

    .line 36
    invoke-static {v5}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object p0

    iput-object p0, v7, Lcom/estrongs/fs/impl/local/j$b;->c:Ljava/lang/Object;

    .line 37
    invoke-virtual {v7}, Lcom/estrongs/fs/impl/local/j$b;->b()V

    .line 38
    iget-object p0, v7, Lcom/estrongs/fs/impl/local/j$b;->e:Ljava/lang/Object;

    check-cast p0, Ljava/lang/Boolean;

    invoke-virtual {p0}, Ljava/lang/Boolean;->booleanValue()Z

    move-result p0

    if-eqz p0, :cond_6

    invoke-static {v6}, Lcom/estrongs/fs/impl/local/j;->b(Lcom/estrongs/fs/impl/local/j$e;)V

    goto :goto_1

    .line 39
    :cond_6
    invoke-static {v6}, Lcom/estrongs/fs/impl/local/j;->a(Lcom/estrongs/fs/impl/local/j$e;)V

    .line 40
    :goto_1
    invoke-virtual {v7}, Lcom/estrongs/fs/impl/local/j$b;->c()Ljava/lang/Object;

    move-result-object p0

    check-cast p0, Ljava/lang/Boolean;

    invoke-virtual {p0}, Ljava/lang/Boolean;->booleanValue()Z

    move-result p0
    :try_end_5
    .catch Ljava/io/IOException; {:try_start_5 .. :try_end_5} :catch_3
    .catchall {:try_start_5 .. :try_end_5} :catchall_0

    if-eqz v4, :cond_7

    .line 41
    :try_start_6
    invoke-virtual {v4}, Ljava/io/InputStream;->close()V

    :cond_7
    if-eqz v3, :cond_8

    .line 42
    invoke-virtual {v3}, Ljava/io/OutputStream;->close()V

    .line 43
    :cond_8
    invoke-virtual {v2}, Landroid/net/LocalSocket;->close()V
    :try_end_6
    .catch Ljava/io/IOException; {:try_start_6 .. :try_end_6} :catch_1
    .catchall {:try_start_6 .. :try_end_6} :catchall_2

    .line 44
    :try_start_7
    monitor-exit v0

    return p0

    :catch_1
    monitor-exit v0
    :try_end_7
    .catchall {:try_start_7 .. :try_end_7} :catchall_2

    return v1

    :cond_9
    if-nez v6, :cond_a

    goto :goto_2

    :cond_a
    const/4 v7, 0x0

    :goto_2
    if-eqz v4, :cond_b

    .line 45
    :try_start_8
    invoke-virtual {v4}, Ljava/io/InputStream;->close()V

    :cond_b
    if-eqz v3, :cond_c

    .line 46
    invoke-virtual {v3}, Ljava/io/OutputStream;->close()V

    .line 47
    :cond_c
    invoke-virtual {v2}, Landroid/net/LocalSocket;->close()V
    :try_end_8
    .catch Ljava/io/IOException; {:try_start_8 .. :try_end_8} :catch_2
    .catchall {:try_start_8 .. :try_end_8} :catchall_2

    .line 48
    :try_start_9
    monitor-exit v0

    return v7

    :catch_2
    monitor-exit v0
    :try_end_9
    .catchall {:try_start_9 .. :try_end_9} :catchall_2

    return v1

    :catchall_0
    move-exception p0

    move-object v9, v4

    move-object v4, v3

    move-object v3, v9

    goto :goto_3

    :catch_3
    move-object p0, v3

    move-object v3, v4

    goto :goto_4

    :catchall_1
    move-exception p0

    move-object v4, v3

    :goto_3
    if-eqz v3, :cond_d

    .line 49
    :try_start_a
    invoke-virtual {v3}, Ljava/io/InputStream;->close()V

    :cond_d
    if-eqz v4, :cond_e

    .line 50
    invoke-virtual {v4}, Ljava/io/OutputStream;->close()V

    .line 51
    :cond_e
    invoke-virtual {v2}, Landroid/net/LocalSocket;->close()V
    :try_end_a
    .catch Ljava/io/IOException; {:try_start_a .. :try_end_a} :catch_4
    .catchall {:try_start_a .. :try_end_a} :catchall_2

    .line 52
    :try_start_b
    throw p0

    .line 53
    :catch_4
    monitor-exit v0
    :try_end_b
    .catchall {:try_start_b .. :try_end_b} :catchall_2

    return v1

    :catch_5
    move-object p0, v3

    :goto_4
    if-eqz v3, :cond_f

    .line 54
    :try_start_c
    invoke-virtual {v3}, Ljava/io/InputStream;->close()V

    :cond_f
    if-eqz p0, :cond_10

    .line 55
    invoke-virtual {p0}, Ljava/io/OutputStream;->close()V

    .line 56
    :cond_10
    invoke-virtual {v2}, Landroid/net/LocalSocket;->close()V
    :try_end_c
    .catch Ljava/io/IOException; {:try_start_c .. :try_end_c} :catch_6
    .catchall {:try_start_c .. :try_end_c} :catchall_2

    .line 57
    :try_start_d
    monitor-exit v0

    return v1

    :catch_6
    monitor-exit v0

    return v1

    :catchall_2
    move-exception p0

    .line 58
    monitor-exit v0
    :try_end_d
    .catchall {:try_start_d .. :try_end_d} :catchall_2

    throw p0
.end method

.method public static n()V
    .locals 1

    const/4 v0, 0x1

    .line 1
    sput-boolean v0, Lcom/estrongs/fs/impl/local/j;->j:Z

    return-void
.end method

.method public static o()V
    .locals 1

    const/4 v0, 0x0

    .line 1
    sput-boolean v0, Lcom/estrongs/fs/impl/local/j;->h:Z

    return-void
.end method

.method private static declared-synchronized p()Landroid/net/LocalSocket;
    .locals 2

    const-class v0, Lcom/estrongs/fs/impl/local/j;

    monitor-enter v0

    const/4 v1, 0x0

    .line 1
    :try_start_0
    invoke-static {v1}, Lcom/estrongs/fs/impl/local/j;->g(Z)Landroid/net/LocalSocket;

    move-result-object v1
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    monitor-exit v0

    return-object v1

    :catchall_0
    move-exception v1

    monitor-exit v0

    throw v1
.end method
